Hello,
I did a quick search and couldn't find an answer to this problem, which i believe to be fairly simple and hopefully will receive a quick and easy answer!
I am trying to compile and run a code in which a file full of data is opened and the data is used to compute some more values which are then put into a different file. So that is two separate files which have to be opened, read, written and then closed.
For this i have used the commands:
OPEN(1,FILE='PEF.txt')
OPEN(2,FILE='uvw101_NEW.txt')
CLOSE(1)
CLOSE(2)
etc.
But when i try and compile, i get the warning that
- 'opening unit 1 may affect the operation of input from the default unit '*' - are you sure you want to do this?' And similarly for unit 2.
It compiles, but when i run it, the output file contains no data, so i'm presuming the program had trouble either reading from the input file or writing to the output?
Can anyone tell me why this is? Is there something wrong with my syntax? It seems like a fairly common issue, but i couldn't find and solution to it.
Thanks in advance!
Joe