August 1st, 2003, 10:58 AM
Can you only open 1 file at a time with fstream open()
I have two files opened and I am inputing values from both, but it seems like the second file I open and input values from is grabbing the data from the first file I opened. I am using fstream open() and grabbing the data 1 byte at a time.
Does anyone know if there is a limiation on the number of files to be opened at a time. Thanks.
August 1st, 2003, 11:01 AM
There is a limitation, but it is in the range of some 1,000 or 10,000 depending on your OS (and -configuration). Probably you have an error in your code.
August 1st, 2003, 11:07 AM
Alright, thats all I needed to know. Thanks.
August 1st, 2003, 04:59 PM
This is going to sound stupid, but make sure that you have two separate fstream objects, and that you aren't re-opening the same object.
Articles and commentary on web development