Apr 22, 2006 #1 Zemm Technical User Apr 22, 2006 6 US I am using fortran in DOS in Windows 98. Is there fortran code that will send the program's output to a text file?
I am using fortran in DOS in Windows 98. Is there fortran code that will send the program's output to a text file?
Apr 22, 2006 #2 xwb Programmer Jul 11, 2002 6,828 GB Several ways 1) You could open a file in fortran using the open statement. Eg if you're writing to channel 6. Code: open (6, file='filename', status='new') ... close (6) 2) if the program is called xxx.exe, from a command prompt Code: xxx > xxx.txt Use this one if you are using print statements. Upvote 0 Downvote
Several ways 1) You could open a file in fortran using the open statement. Eg if you're writing to channel 6. Code: open (6, file='filename', status='new') ... close (6) 2) if the program is called xxx.exe, from a command prompt Code: xxx > xxx.txt Use this one if you are using print statements.
Apr 22, 2006 Thread starter #3 Zemm Technical User Apr 22, 2006 6 US #2 is exactly what I was after. Thank you! Upvote 0 Downvote