txt file contains for example : 0.4.
0.2.
.
.
.
When I execute the .exe I got the message : run time error F6103 :
read(file.txt)
-
Invalid REAL
What can I do ?
Might be more clear if you showed us *EXACTLY* what a sample text
file contains, instead of a "for example" with ellipsis. I'm having
trouble telling from what you posted. Does the text file really
start with "0.4." or is that second point supposed to be part
of an ellipsis in your "for example"? If there is really a second
decimal point there, then that would be a problem - a real
number may have only one decimal point.
Also, there is something a bit odd looking about the formatting of
your "for example" text file. You don't perhaps have something
non-standard like tab characters in it do you? Or perhaps lines
that aren't properly formed for DOS/windows (i.e. don't end in a
cr/lf). Based on the fact that you mention exe files, I am guessing
that you are on dos/windows.
--
Richard Maine | Good judgement comes from experience;
ma...@altair.dfrc.nasa.gov | experience comes from bad judgement.
| -- Mark Twain