The topic says it all.
I'm writing data to a binary file and I get NULL if the file doesn't exists.
I know Elysia said in a past postIs there no way to force it to create the file if it doesn't exist?You should note that unless the file x.txt exists, then a call to fopen with trying to open a file for reading using "r" will fail.
Make sure the file exists first, then you can read first and write later.



LinkBack URL
About LinkBacks



