- 52 名前:デフォルトの名無しさん:7 [2007/07/19(木) 00:06:36 ]
- >>7です。
質問があります。以下のような関数を作ってファイル出力させてみたところ、 Windowsにあるノートパッドで、文字列を表示できません。。。 int output_dfg_to_file(){ FILE *fp; char filename[64]; int state = 1, index0, index1; int char_lib; printf("OUTPUT >> DFG File Name: \n"); gets_s(filename); if ((fp = fopen(filename, "w")) == NULL){ printf("ERROR: could not open file. \n"); state = 1; goto exit; } for (index0=0; index0 < LIB_TABLE_SIZE; index0++){ for (index1=0; index1 < LATTER_SIZE; index1++){ char_lib = table[index0][index1]; printf("%c", char_lib); fputc(char_lib, fp); } fputc('\n', fp); } fclose(fp); exit: return state; } いったん送信〜
|

|