Subj : Re: fstream arrays To : borland.public.cpp.borlandcpp From : "D Kat" Date : Wed Mar 10 2004 12:58 pm I'm not sure how to check on this issue. Again this is a DOS based program... FILES = 50 on boot up... I'm opening a great many speech files throughout the program but each is closed before the next is opened and I get no errors with these files (there is a single filestream for these binary files .... ). The maximum that num_sub is allowed to be is 3.... but you did just give me a thought on how to eliminate the problem in cases where the file is only written to once..... At least I can get rid of that annoyance. I appreciate all this help. I have been simply stuck on looking at it from one direction and this has helped open things up. I've also learned a bit which is always nice. DKat "Dwayne" wrote in message news:403d19c1@newsgroups.borland.com... > //CODE WHICH CALLS THE FILE OPEN FUNCTION > void write_data(int numstim) > { > int ns,stim; > for (ns = 0; ns < num_sub; ns++) > { > > if (get_subj_fp(ns) == 1);//ERROR returns error which is ignored > > for (stim=0;stim { out_files[ns] << resp[ns][stim] << "\t" << resprt[ns][stim] << > endl; } > > out_files[ns].close(); > } > } > > > Not only the Dos limitations, but also the compiler limitations! > > Dwayne > > .