cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Windows Programming
Parse Data from txt file while its open
Parse Data from txt file while its open with another program?
Dec 18, 2018 at 3:29pm UTC
Sanction
(46)
Is this possible to do and how can I do this with WIN API? I would prefer to use <fstream> but I want to learn the WIN API as well.
Thanks!
Sanction
Dec 18, 2018 at 3:59pm UTC
Thomas1965
(4571)
It depends on the file mode the other programs opens the file.
Try reading with CreateFileA and check the return value.
https://docs.microsoft.com/en-us/windows/desktop/api/fileapi/nf-fileapi-createfilea
Topic archived. No new replies allowed.