I have a program that needs to read in an unknown number of characters
for example, the input can be:
---
AC 0
DC 50
START 1
CPU 30
END
START 102
CPU 40
END
---
I will need to do some processing based on that input, but there can any number of 'START's and 'END's
the way my program will executed is this way:
program1 < data.txt
data.txt can have any number of characers in there, i need to find a way to store all the data -- does anyone know a method for checking that? checking if there is nothing in the buffer maybe?
thanks..
-Sohel