tomlf_utils_io Module

Utilities for handling input and output operations



Subroutines

public subroutine read_whole_file(filename, string, stat)

Read a whole file into an array of characters

Arguments

Type IntentOptional Attributes Name
character(kind=tfc, len=*), intent(in) :: filename

File to read

character(kind=tfc, len=:), intent(out), allocatable :: string

Array of characters representing the file

integer, intent(out) :: stat

Error status

public subroutine read_whole_line(io, string, stat)

Read a whole line from a formatted unit into a deferred length character variable

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: io

Formatted IO unit

character(kind=tfc, len=:), intent(out), allocatable :: string

Line to read

integer, intent(out) :: stat

Status of operation