- Feb 28, 2008
- 1,264
- 0
- 71
I am attempting to write a program that reads in data from a file but need some help.
I need to know how many bytes are remaining in a file as it is read at runtime not compile time.
What are some ways that I can do this? I need the program to know the exact number of byte remaining in a file where I will be freading it in chunks of nine bytes and am strugling to figure out how the program can tell if there are <9 bytes left then do option B otherwise do option A.
Thanks
I need to know how many bytes are remaining in a file as it is read at runtime not compile time.
What are some ways that I can do this? I need the program to know the exact number of byte remaining in a file where I will be freading it in chunks of nine bytes and am strugling to figure out how the program can tell if there are <9 bytes left then do option B otherwise do option A.
Thanks
Last edited: