323 Subj : Re: fstream arrays To : borland.public.cpp.borlandcpp From : "Dwayne" Date : Tue Feb 24 2004 02:08 pm Hello /////////////////////CODE//////////////////////////////// ofstream out_files[NSUB];//file to write data to get_subj_fp(int file) { char name[20]; << If i were to make a million dollar bet, I would say that you need to increase your "name[20] to a much larger value... Maybe name[100] (to be safe. Also, make darn sure if you are using FAT system, that the name and/or the directory are no more than a 8.3 format size. This means the directory should not be more than 8 characters, and the ending filename should not be more than 8 characters, a period and 3 characters. Dwayne . 0