CSV_IO
Read and Write Comma Separated Values (CSV) Files
CSV_IO
is a FORTRAN90 program which
reads and writes files that use the CSV (comma separated values) format.
Licensing:
The computer code and data files described and made available on this web page
are distributed under
the GNU LGPL license.
Languages:
CSV_IO is available in
a FORTRAN90 version.
Related Data and Programs:
CSV,
a data directory which
contains examples of Comma Separated Value files;
TABLE_IO,
a FORTRAN90 library which
reads and writes TABLE files.
Reference:
-
Yakov Shafranovich,
RFC 4180:
Common Format and MIME Type for Comma-Separated Values (CSV) Files,
October 2005.
Source Code:
Examples and Tests:
List of Routines:
-
CSV_COUNT counts the number of values in a CSV record.
-
CSV_FILE_CLOSE_WRITE closes a CSV file for writing.
-
CSV_FILE_HEADER_WRITE writes a header to a CSV file.
-
CSV_FILE_LINE_COUNT counts the number of lines in a CSV file.
-
CSV_FILE_RECORD_WRITE writes a record to a CSV file.
-
CSV_FILE_OPEN_WRITE opens a CSV file for writing.
-
CSV_RECORD_APPEND_I4 appends an I4 to a CSV record.
-
CSV_RECORD_APPEND_S appends a string to a CSV record.
-
GET_UNIT returns a free FORTRAN unit number.
-
I4_LOG_10 returns the integer part of the logarithm base 10 of an I4.
-
I4_WIDTH returns the "width" of an I4.
-
TIMESTAMP prints the current YMDHMS date as a time stamp.
You can go up one level to
the FORTRAN90 source codes.
Last revised on 22 November 2008.