Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void RefreshText() {
- string line;
- filesystem::path file_path = "C:/Users/Toffer/Desktop/testfile.txt"
- auto file_time = filesytem::last_file_write(file_path);
- while (true) {
- if (filesytem::last_file_write(file_path) != file_time) {
- file_time = filesytem::last_file_write(file_path);
- PrintText(line);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement