Subj : Re: fstream arrays To : borland.public.cpp.borlandcpp From : "D Kat" Date : Wed Feb 25 2004 03:17 pm I run in DOS for these programs so the names are limited to 8 char + 1 . + 3 ext + '\0'.... I often find that buffer overwrite is the issue but not in this case. thanks for the thought though "Dwayne" wrote in message news:403cffc3$1@newsgroups.borland.com... > 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 > > .