Hakan Axheim

Hakan Axheim

  • NA
  • 201
  • 31.6k

Reading text file twice in a C program

Sep 14 2023 10:36 PM

Hi,

I have a C program that I have problem with.

The program shall read from an input folder on a share files located there. For each file I close the file also. Okay, now I know the file names in the input folder. After that I open the first text file again for processing the content in that file. Now, fopen get an error and the file cannot be open. If I execute this program with debug Athen the program executes correct. I can open the text file and process the file.

what can I do to prevent this error?

Regards

 

big spender


Answers (4)