strcat( filename, fname);
strcat( filename, ".txt");
fw = fopen( filename ,"wt");
すみません、因みにこのようにしてtxtファイルに出力しています。
どうやれば>>682のように出力できるのですかね・・・