i am opening or creating a file in the .exe's directory, depending on whether or not the file exists.
i thought that if the file DOESN'T exist, then it will be created for READING AND WRITING. but if the file exists then it will open the existing file for READING AND WRITING.Code:auto_file = fopen(path, "r+");
anyways, this isn't working. the program terminates from failure. what i want to do is simply create/open a file for reading and writing.
i'm using this source (http://www.acm.uiuc.edu/webmonkeys/b....12.html#fopen)