- 1

How to create a txt file that writes live

I know a little weird questions but I made a keylogger and it works(outputs the keylogger) but only if I close the console I want to do it so when I write in the console for example it will write it in the txt file at the same time I write in the console I am now using fstream to write the file

31st Jul 2019, 9:58 PM
Cout
Cout - avatar
14 Antworten
0
Then you can't do that
31st Jul 2019, 10:26 PM
Dejan Francuz🥇
Dejan Francuz🥇 - avatar
0
You can't make a changes while the program is running!!! You should know that
31st Jul 2019, 10:32 PM
Dejan Francuz🥇
Dejan Francuz🥇 - avatar
0
I don't wanna bet, I know that you can't do that especially in c++. How can't you understand? There's no way to do that until the program is finished with execution. While program doesn't reach return 0; it is working! after that you can see changes
31st Jul 2019, 10:34 PM
Dejan Francuz🥇
Dejan Francuz🥇 - avatar
0
Show me pls
31st Jul 2019, 10:36 PM
Dejan Francuz🥇
Dejan Francuz🥇 - avatar
0
It's a bullshit man, you don't even know what's written there
31st Jul 2019, 10:38 PM
Dejan Francuz🥇
Dejan Francuz🥇 - avatar
0
Wow ok noob, I don't believe you bcs you don't know what even means auto even that you knew to change something here...
31st Jul 2019, 10:40 PM
Dejan Francuz🥇
Dejan Francuz🥇 - avatar
- 1
It will write just reopen file...
31st Jul 2019, 10:03 PM
Dejan Francuz🥇
Dejan Francuz🥇 - avatar
- 1
Dejan Francuz🥇 Yes, you can. A good programmer knows that there's always a way
31st Jul 2019, 10:31 PM
Cout
Cout - avatar
- 1
Dejan Francuz🥇 Damn you don't know how things work are you? How much you want to bet that there's a way
31st Jul 2019, 10:33 PM
Cout
Cout - avatar
- 1
Dejan Francuz🥇 Yeah... I just found an answer
31st Jul 2019, 10:35 PM
Cout
Cout - avatar
- 1
Dejan Francuz🥇 You are completely dumb. The fact is that my program works now and this was the answer to my question explain this
31st Jul 2019, 10:39 PM
Cout
Cout - avatar
- 1
Dejan Francuz🥇 How can I prove it?
31st Jul 2019, 10:41 PM
Cout
Cout - avatar
- 2
Dejan Francuz🥇 that is for example not true it writes it only if I close the console
31st Jul 2019, 10:18 PM
Cout
Cout - avatar