[Dev-C++] Some help with ported C ansi code
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Roberto R. <rob...@ar...> - 2002-07-24 03:59:12
|
Hi all, I ported all my code from DJGPP to Dev-C++ in ansi C format. The compilation is ok now. But when I run it the program crash near at the end. I use some like 8 files to read or write in a form FILE *fp1 ...*fp8; fp1 = fopen(archme,"r"); fp2 = fopen(archme,"w"); and so on fprintf (fp2,"format", variables here ); ........ ......... etc. Finally fclose to end it. So ... The file *fp4 looks with 0 bytes ever. the other files are not empty but look not completed at all. I see the crash zone about fclose files sentences. Need I do some like a flush before close the files ? Im using windows xp (Of course the program works well in DJGPP) Thanks for any ideas Roberto |