Subj : fstream arrays To : borland.public.cpp.borlandcpp From : "D Kat" Date : Wed Feb 25 2004 11:34 am I have posted here before and basically gave up over time. Since this is a on going problem that keeps coming up I will try again. In the work I do I must have fstreams that are arrays (there are many reasons for this.... I have to access the fstream I need at any particular time with a mathematical formula). On error checking of the opening of these streams I get errors. When I ignore the error messages the files actually function just fine (data is written out to them without error). I know this is not the group for builder but am again having the same sort of issue in that domain. I am opening arrays of pointers to bitmaps files. This time it is an input rather than an output of data but it is acting "odd" in the exact same way. Is it possible that this is a compiler issue? I know with borland the medium and huge memory model treats pointers differently than the other size MM...... Every time I think I understand the options of the borland compiler I find myself where my programs will NOT work and the only solution is to delete the borland config files (TCCONFIG.TC/TCDEF.DPR/TCDEF.DSK), start with the default settings and then set to the parameters I know that I must have for my program to run. This is such simple code that I find it difficult to understand at all where any problem could be. DKat /////////////////////CODE//////////////////////////////// ofstream out_files[NSUB];//file to write data to get_subj_fp(int file) { char name[20]; strcpy(name,"data/"); strcat(name, sub_name[file]); strcat(name,"."); strcat(name,cdn); out_files[file].open(name); if (!out_files[file]) { cerr << "\nerror on file " << sub_name[file] << "\n"; return(1); } return(0); } .