I need to read/write a bunch of string's to a binary file. Now this obviously requires the use of a char array. I want to avoid having to store the length of the char array and instead just store each char array as a length of 255 and just consider the null termination as the end.
So my question is, if I have a char[255] and lets say it's null terminator is at [10] then will a function like fopen() read the entire char array or will it stop at [10]?




Reply With Quote