How to read from a file ?
Posted on 2004-04-04
Could you please give me the source code for a program that reads data from a file.
Example - My data.txt contains this:
1 2 3 4 5
Now: I want to read each number, knowing that there is a white space in between each os them. Later on the program should print in the screen:
Can you please code this for me and post it ?