C File reading and writing
I was writing an application where i need to write text to a file whose size is determined at runtime.
I am familiar with this
Then performing fread and fwrite.
But what i require is char *msg rather than msg[FIXED_SIZE].
Could anyone give me some reference or a snippet of how to do this.