Recent content by ae62589
-
A
Fortran Input .txt file into Fortran program
My program and my txt file are in the same directory. I am trying to extract everything from the text file, not just one value. Does that correspond with the unit = 20? program name implicit none integer :: input(9,2), I, J character :: unit20 open (unit=20, file="values.txt") READ...- ae62589
- Post #5
- Forum: Programming and Computer Science
-
A
Fortran Input .txt file into Fortran program
It still does the same thing, except for now you can input one value before the program displays a random line of numbers. I added a read statement right after I opened the txt file, and added unit20 to the declaration of integers.- ae62589
- Post #3
- Forum: Programming and Computer Science
-
A
Fortran Input .txt file into Fortran program
I am trying to input a txt file into my fortran program. My txt file is a 9x2 table of integers, all I want is to display the values in the same format in my program. I tried using, program name implicit none integer :: input(9,2), I, J open (unit=20, file="values.txt") DO I =...- ae62589
- Thread
- File Fortran Input Program
- Replies: 9
- Forum: Programming and Computer Science