from_file Interface

public interface from_file

Subroutine for reading an external file of uniform numeric data type and format into an array.

For a user reference, see from_file.


Subroutines

private impure recursive module subroutine from_textfile_c128(file, into, header, locale, delim, fmt, im, stat, errmsg)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: file
complex(kind=r128), intent(out), allocatable :: into(..)
logical, intent(in), optional, target :: header
character(len=*), intent(in), optional, target :: locale
character(len=*), intent(in), optional, target :: delim
character(len=*), intent(in), optional, target :: fmt
character(len=*), intent(in), optional, target :: im
integer, intent(out), optional, target :: stat
character(len=*), intent(out), optional, target :: errmsg

private impure recursive module subroutine from_textfile_c64(file, into, header, locale, delim, fmt, im, stat, errmsg)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: file
complex(kind=r64), intent(out), allocatable :: into(..)
logical, intent(in), optional, target :: header
character(len=*), intent(in), optional, target :: locale
character(len=*), intent(in), optional, target :: delim
character(len=*), intent(in), optional, target :: fmt
character(len=*), intent(in), optional, target :: im
integer, intent(out), optional, target :: stat
character(len=*), intent(out), optional, target :: errmsg

private impure recursive module subroutine from_textfile_c32(file, into, header, locale, delim, fmt, im, stat, errmsg)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: file
complex(kind=r32), intent(out), allocatable :: into(..)
logical, intent(in), optional, target :: header
character(len=*), intent(in), optional, target :: locale
character(len=*), intent(in), optional, target :: delim
character(len=*), intent(in), optional, target :: fmt
character(len=*), intent(in), optional, target :: im
integer, intent(out), optional, target :: stat
character(len=*), intent(out), optional, target :: errmsg

private impure recursive module subroutine from_binaryfile_c128(file, into, data_shape, stat, errmsg)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: file
complex(kind=r128), intent(out), allocatable :: into(..)
integer, intent(in) :: data_shape(:)
integer, intent(out), optional, target :: stat
character(len=*), intent(out), optional, target :: errmsg

private impure recursive module subroutine from_binaryfile_c64(file, into, data_shape, stat, errmsg)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: file
complex(kind=r64), intent(out), allocatable :: into(..)
integer, intent(in) :: data_shape(:)
integer, intent(out), optional, target :: stat
character(len=*), intent(out), optional, target :: errmsg

private impure recursive module subroutine from_binaryfile_c32(file, into, data_shape, stat, errmsg)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: file
complex(kind=r32), intent(out), allocatable :: into(..)
integer, intent(in) :: data_shape(:)
integer, intent(out), optional, target :: stat
character(len=*), intent(out), optional, target :: errmsg

private impure recursive module subroutine from_textfile_r128(file, into, header, locale, delim, fmt, stat, errmsg)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: file
real(kind=r128), intent(out), allocatable :: into(..)
logical, intent(in), optional, target :: header
character(len=*), intent(in), optional, target :: locale
character(len=*), intent(in), optional, target :: delim
character(len=*), intent(in), optional, target :: fmt
integer, intent(out), optional, target :: stat
character(len=*), intent(out), optional, target :: errmsg

private impure recursive module subroutine from_textfile_r64(file, into, header, locale, delim, fmt, stat, errmsg)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: file
real(kind=r64), intent(out), allocatable :: into(..)
logical, intent(in), optional, target :: header
character(len=*), intent(in), optional, target :: locale
character(len=*), intent(in), optional, target :: delim
character(len=*), intent(in), optional, target :: fmt
integer, intent(out), optional, target :: stat
character(len=*), intent(out), optional, target :: errmsg

private impure recursive module subroutine from_textfile_r32(file, into, header, locale, delim, fmt, stat, errmsg)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: file
real(kind=r32), intent(out), allocatable :: into(..)
logical, intent(in), optional, target :: header
character(len=*), intent(in), optional, target :: locale
character(len=*), intent(in), optional, target :: delim
character(len=*), intent(in), optional, target :: fmt
integer, intent(out), optional, target :: stat
character(len=*), intent(out), optional, target :: errmsg

private impure recursive module subroutine from_binaryfile_r128(file, into, data_shape, stat, errmsg)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: file
real(kind=r128), intent(out), allocatable :: into(..)
integer, intent(in) :: data_shape(:)
integer, intent(out), optional, target :: stat
character(len=*), intent(out), optional, target :: errmsg

private impure recursive module subroutine from_binaryfile_r64(file, into, data_shape, stat, errmsg)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: file
real(kind=r64), intent(out), allocatable :: into(..)
integer, intent(in) :: data_shape(:)
integer, intent(out), optional, target :: stat
character(len=*), intent(out), optional, target :: errmsg

private impure recursive module subroutine from_binaryfile_r32(file, into, data_shape, stat, errmsg)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: file
real(kind=r32), intent(out), allocatable :: into(..)
integer, intent(in) :: data_shape(:)
integer, intent(out), optional, target :: stat
character(len=*), intent(out), optional, target :: errmsg

private impure recursive module subroutine from_textfile_i64(file, into, header, delim, fmt, stat, errmsg)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: file
integer(kind=i64), intent(out), allocatable :: into(..)
logical, intent(in), optional, target :: header
character(len=*), intent(in), optional, target :: delim
character(len=*), intent(in), optional, target :: fmt
integer, intent(out), optional, target :: stat
character(len=*), intent(out), optional, target :: errmsg

private impure recursive module subroutine from_textfile_i32(file, into, header, delim, fmt, stat, errmsg)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: file
integer(kind=i32), intent(out), allocatable :: into(..)
logical, intent(in), optional, target :: header
character(len=*), intent(in), optional, target :: delim
character(len=*), intent(in), optional, target :: fmt
integer, intent(out), optional, target :: stat
character(len=*), intent(out), optional, target :: errmsg

private impure recursive module subroutine from_textfile_i16(file, into, header, delim, fmt, stat, errmsg)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: file
integer(kind=i16), intent(out), allocatable :: into(..)
logical, intent(in), optional, target :: header
character(len=*), intent(in), optional, target :: delim
character(len=*), intent(in), optional, target :: fmt
integer, intent(out), optional, target :: stat
character(len=*), intent(out), optional, target :: errmsg

private impure recursive module subroutine from_textfile_i8(file, into, header, delim, fmt, stat, errmsg)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: file
integer(kind=i8), intent(out), allocatable :: into(..)
logical, intent(in), optional, target :: header
character(len=*), intent(in), optional, target :: delim
character(len=*), intent(in), optional, target :: fmt
integer, intent(out), optional, target :: stat
character(len=*), intent(out), optional, target :: errmsg

private impure recursive module subroutine from_binaryfile_i64(file, into, data_shape, stat, errmsg)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: file
integer(kind=i64), intent(out), allocatable :: into(..)
integer, intent(in) :: data_shape(:)
integer, intent(out), optional, target :: stat
character(len=*), intent(out), optional, target :: errmsg

private impure recursive module subroutine from_binaryfile_i32(file, into, data_shape, stat, errmsg)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: file
integer(kind=i32), intent(out), allocatable :: into(..)
integer, intent(in) :: data_shape(:)
integer, intent(out), optional, target :: stat
character(len=*), intent(out), optional, target :: errmsg

private impure recursive module subroutine from_binaryfile_i16(file, into, data_shape, stat, errmsg)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: file
integer(kind=i16), intent(out), allocatable :: into(..)
integer, intent(in) :: data_shape(:)
integer, intent(out), optional, target :: stat
character(len=*), intent(out), optional, target :: errmsg

private impure recursive module subroutine from_binaryfile_i8(file, into, data_shape, stat, errmsg)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: file
integer(kind=i8), intent(out), allocatable :: into(..)
integer, intent(in) :: data_shape(:)
integer, intent(out), optional, target :: stat
character(len=*), intent(out), optional, target :: errmsg