Reading a file while writing another program (Windows)

Basically, I am trying to read a log file from a game while this game is running, so that my program reacts dynamically to it. I know this is possible, as other programs like Notepad (++) can do this. However, after finding the answer, most of what I can think of is only Linux related.

I have no idea how to do this, help with C ++ or C # would be great. Although I would prefer native C ++ over C #.

+4
source share
1 answer

The β€œnative” winapi solution is CreateFile and, in particular, its dwShareMode parameter.

+1
source

Source: https://habr.com/ru/post/1444329/


All Articles