簡単なファイル(CSV、TXTなど)の読込手続き集モジュール
CSV読込手続き
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | filename | |||
double precision, | intent(inout), | allocatable | :: | matrix(:,:) | ||
integer, | intent(in), | optional | :: | column | ||
logical, | optional | :: | header |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | filename | |||
integer, | intent(inout), | allocatable | :: | matrix(:,:) | ||
integer, | intent(in), | optional | :: | column | ||
logical, | optional | :: | header |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | filename | |||
character(len=*), | intent(inout), | allocatable | :: | matrix(:,:) | ||
integer, | intent(in), | optional | :: | column | ||
logical, | optional | :: | header |
TXTファイルを、全行読み込む。 1行あたりの文字数は引数に依存。
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | filename |
ファイル名(パス) |
||
character(len=*), | intent(out), | allocatable | :: | array(:) |
文字列配列 要素数はallocatableだが、1要素あたりの文字数は予め指定 |