I have a text file containing lines of input data:
T
1
300.00
C:\Documents and Settings\username\output\asdf.txt
which I am reading with some .f95 code:
character(len=1) ::var1
integer ::var2
double precision ::var3
character(len=150)::var4
open(12,file='input.txt')
read(12,*)var1
read(12,*)var2
read(12,*)var3
read(12,'(a)')var4
When I run the compiled .exe this works fine. However I need to call it from a larger VB.NET program. When I do that the debugger compains about the .f95 code: 'attempt to read past end of file at line xx'
where xx is the line number of the 1st read statement.
How can calling the code from some other script affect the way it runs?!
Help would be Hugely appreciated!
T
1
300.00
C:\Documents and Settings\username\output\asdf.txt
which I am reading with some .f95 code:
character(len=1) ::var1
integer ::var2
double precision ::var3
character(len=150)::var4
open(12,file='input.txt')
read(12,*)var1
read(12,*)var2
read(12,*)var3
read(12,'(a)')var4
When I run the compiled .exe this works fine. However I need to call it from a larger VB.NET program. When I do that the debugger compains about the .f95 code: 'attempt to read past end of file at line xx'
where xx is the line number of the 1st read statement.
How can calling the code from some other script affect the way it runs?!
Help would be Hugely appreciated!