How to read a text file that is already in use (Windows C++)
问题 I have an application that creates a text log file using an std::ofstream using std::ofstream::app to create it. This application is writing logs often, sometimes only milliseconds apart. I want to write a second application that reads in and analyses this log file whilst the first application is still writing to it I have some working code, using ifstream , that loads & processes a standalone text log file, but this code fails when I try to use it on the text log file that is currently being