kkarnez
asked on
About FileRead()
Can I, using FileRead(), read integers from a file and not bytes?
For example if my file is like this:
12 32
How can I read only the two numbers and not the space between them?
Thanks for your help
For example if my file is like this:
12 32
How can I read only the two numbers and not the space between them?
Thanks for your help
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The easiest way is to open file and read it as a traditional pascal as
ReadLn(f,integer1,integer2
Of course you can do it with FileRead but not automatically, you should parse the line by yourself.
Regards, Igor