I made it well, the process monitor app. It is working perfect i choosed a folder and manually created a text file and Process Monitor App showed it to me after delete. But there is nothing about my program's text file. It couldn't catch something about that. Also closed Anti-virus apps.
D:\TEST
0Enter your nickname: ss
success
write success
The user is succesfully added!
Volume in drive D is Depo
Directory of D:\TEST
26.05.2020 18:06 <DIR> .
26.05.2020 18:06 <DIR> ..
26.05.2020 18:06 713 deneme.cpp
26.05.2020 18:06 1.922.352 deneme.exe
26.05.2020 18:07 28 users.txt
3 File(s) 1.923.093 bytes
2 Dir(s) 204.726.333.440 bytes free
This is proof that you're creating the file. That means you must be deleting it later in your program. It's also possible, but unlikely, that your disk is corrupt.
Can you post the full program? Without the code we're just guessing.
Already this doesn't even work. Also I have some problems about reading writing permissions, this is why try to work it on D: disc with giving all permissions to all users for directory folder, when i try to edit any text file on C: ProgramFiles, it gives me error like You don't have a permission to open this. I don't know is that related or not.
Just i had to use folder functions for my homework project I couldn't solve it after a few days, I don't have enough time. So i lost my concentration because only adding function of users class is working on my codes but my mission was do adding, deleting, listing, searching, updating for users and messages classes. Also heredity too. But on my codes only user adding function is working true... I lost my concentrate about to solve text problem, the same goes for the project, though...
The Orwell(Bloodshed?) Dev-C++'s compiler has C++11, but not enabled by default because it's old. You can go into the compiler configuration menu and turn on a -std=c++11 or -std=c++0x option. But anyway, that's all beside the point. If that is truly the complete program, then I go back to my previous point that dhayden and I suggested: Something else is deleting your file. I don't know why nor do I have really have more suggestions at this point other than to explore procmon more to see if you can tell which process is deleting your file after it's created.
Do the latest versions of Windows still have a "safe mode" accessible? You could try launching in safe mode and seeing if the problem still happens.
If it doesn't deleting according to Process Monitor app, is there maybe something sending it random somewhere. Though when i searched on the computer i still couldn't find it.
No, there isn't users.txtt still.
Also if someone have this or similiar problem, you can use online virtual machines temporarily. At least i used it for finish my project.
Hello friends after a few days, I don't know how can i start but I found the answer! Please read to the end, because If one day you see another one has this problem, you can help to him.
Okey, I finished my project homework well with a online virtual machine. This is OK. A few minutes ago I tried to install a computer game , It finished to install okey, but when i look to true directory I couldn't find the folders of it. I searched a part of the game on PC and I found weird result, I tried to install 4 times the game and I found 4 folders, but they were not in true directory. They were in "VTRoot Folder" (also it was a secret file in C:) I tried to open game It didn't start, It said you don't have permission to do it in this folder. I searched about it on web, and I found really weird results, It says it is a folder like a "prison". Why is there a folder like that? Is that a part of Windows? No, It is because of my antivirus "Comodo". It wasn't a bad antivirus but a few weeks ago someone said to me don't use it it can make problems, but i didn't delete it still.
Anyway my lost text files were inside of it too, in the "VTRoot" folder.When i found them it was a emotional moment for me. It was very different a folder that you can't open any file or can't change any file inside of it. So If you see someone has the same problem, you should say uninstall Comodo antivirus... This will solve ,I guess. Thanks to everyone tried to help me, I am really grateful to all. For last I was right, there was a transporting :) not deleting. And I guess my harddisk is okey too. My big problem is solved! Again Thanks to everyone!
Yep, over-aggressive anti-virus can do some really nasty things. Glad you were able to find out the root cause, and thanks for following up so that others might know.