Guest_imported
New member
- Jan 1, 1970
- 0
I run my web site with CGI written in C++. My program creates pages based on regular text files. If two people hit my site at the same time, can those files still be read, or does one of them get an error? I use ofstream and close open files as soon as possible. I also read a datafile, again as ofstream. Lastly, I append to a log file using ifstream. Can a single file be opened by several instances of my program?