Embarcadero / Dev-Cpp

A fast, portable, simple, and free C/C++ IDE
https://www.embarcadero.com/free-tools/dev-cpp
GNU General Public License v2.0
2.43k stars 266 forks source link

DEVC++ cannot open one of my files #248

Open hbhz-zcy opened 1 year ago

hbhz-zcy commented 1 year ago

I get a file named "in.txt" with about 2KB. Then I tried to open it in DEV but it shows a same thing like "https://github.com/Embarcadero/Dev-Cpp/issues/12".
But I tried to clear "in.txt" to 0KB , restart my computer and use admin but they don't work at all.
I find that memory increased a lot at then DEV was killed by system.
And sometimes it says "out of memory".

hbhz-zcy commented 1 year ago

I used Embarcadero DEV-C++ 6.3.

hbhz-zcy commented 1 year ago

the bad thing is my scanf can't be used for read now and gdb can show nothing.
now I have to install DEVC++ again.
I'm going to be crazy now!

pmcgee69 commented 1 year ago

Can you give a link to the file?

hbhz-zcy commented 1 year ago

It's about so:

100 100
1 2
2 3
3 4
......
99 100
100 1

(In fact I have reinstall DEV and delete "in.txt")

pmcgee69 commented 1 year ago

Are you compiling C or C++ ?

hbhz-zcy commented 1 year ago

I use C++.
In fact I was using one C++ file to read it , with freopen("in.txt","r",stdin).
Suddenlt I found that it read nothing and then I can't open that file.
(all the files can't be found now).