Hi,
I have a console program that uses command line arguments like
app.exe inp1.txt inp2.txt out1.txt out2.bmp
and I use
call GETARG(3,fln1)
call GETARG(4,fln2)
to supply the filenames for the out1.txt and out2.bmp
For reading these input files I have
OPEN(UNIT = 101, FILE = '', STATUS = 'OLD', IOSTAT = IERR)
and the File = '' takes in inp1.txt and a separate one for inp2.txt
The issue is during debugging (using command arguments) it returns error in opening input file and I have to physically replace it with the filename
OPEN(UNIT = 101, FILE = 'inp1.txt', STATUS = 'OLD', IOSTAT = IERR)
Why is this so. The compiled executable runs fine but during debugging I have to hardcode it in. The reason for the input file name to be different each time is this is run on a webinterface with multiple users possibly running the same application simultaneously and hence each user has a separate input and output filename
Thanks for any help
Sumit