text files contents
Hello there, I created a text file of 4gb in which the contents are all spaces. Now I created program that uses fread for me to look inside the files, when I printed the buffer, I saw a different character which is not a space. Why is it that there is a different character?
|
Perhaps it's an end-of-line character or something? Where is it in the file? What character does it appear as? Is there only one?
|
it appears as the first character, I casted it to unsigned short so it gives me a number. The rest is the same value and the last one is different because of the end of line or null terminating or whatever that is. I was thinking that it could be a header for the text file. Is this possible?
|
Quote:
Quote:
|
i have a software that can create text files in any size you want but produces only spaces.
|
Quote:
amways try something like: Code:
#include "stdio.h" season to taste. |
All times are GMT -5. The time now is 02:23 PM. |