Alright... I have an input file containing the following: (let's call it fiLe)
1001 John 30.0 0.0 0.0 0.0
My pascal program contains:
read(fiLe, a, b, c,); (* I have also tried readln here with the same result *)
Here is the problem I have having. If I read in just 'a' everything is fine.... it reads "1001"
BUT if I read in 'a' & 'b' ... I get the whole first line of my input file. When I try to read 3 items from the input file, it tries to read after the end of line or end of file....
Ultimately, I want to have more than one line in the input file with the same format and have it quit reading when it hits a "-1" or "a"
Any help will be greatly appreciated.