How would you write, like, 8 bytes to the end of a file then read to see if those 8 bytes exist?
thanks.
Printable View
How would you write, like, 8 bytes to the end of a file then read to see if those 8 bytes exist?
thanks.
Get the filesize in bytes.. then simply use SetFilePointer() API to move the pointer to anywhere you like... after that, do the write operation. :)
can you elaborate an example of that, please?
Have you even tried to google ? File handling is in almost every help file/website and is very basic. Here is one...Quote:
How would you write, like, 8 bytes to the end of a file then read to see if those 8 bytes exist?