Reading MS Excel Files in FORTRAN 77
Click For Summary
Discussion Overview
The discussion revolves around reading MS Excel created CSV or tab-delimited files in FORTRAN 77. Participants share code snippets, error messages, and troubleshooting tips related to file reading issues.
Discussion Character
- Technical explanation
- Debate/contested
- Experimental/applied
Main Points Raised
- Ekin seeks assistance on reading CSV or tab-delimited files in FORTRAN 77.
- Mathmate provides a code snippet for reading a text file, suggesting renaming the file to Gucu.txt.
- Ign reports an "End of file" error when attempting to read the file using Mathmate's code.
- A later reply from Mathmate suggests verifying the content of the text file for extra characters or missing newlines.
- Ign mentions that the provided data was missing lines and shares a new file format they are trying to read.
- Another participant successfully runs a modified program with Ign's data, suggesting shortening the file name might help.
- Ign later reports success after saving the file as UTF-8 without a .txt extension, though they express uncertainty about the cause.
- A participant speculates that gfortran's default encoding might be incompatible with Ubuntu's native code and suggests using native editors for file creation.
- A new participant inquires about reading data in FORTRAN 90-95 and seeks advice on creating a specific array structure.
Areas of Agreement / Disagreement
The discussion includes multiple competing views and unresolved issues regarding file reading methods and potential encoding problems. Participants share different experiences and solutions without reaching a consensus on a single approach.
Contextual Notes
Participants mention issues related to file content, encoding, and compatibility with different FORTRAN versions, but these remain unresolved and context-dependent.
Who May Find This Useful
This discussion may be useful for programmers working with FORTRAN who need to read data from CSV or text files, particularly those facing similar encoding or file format issues.
Similar threads
- · Replies 8 ·
- · Replies 2 ·
- · Replies 2 ·
- · Replies 22 ·
- · Replies 8 ·
- · Replies 19 ·
- · Replies 14 ·
- · Replies 5 ·
- · Replies 12 ·