Advertisement

fstream question (beginner)

Started by December 14, 2000 12:52 PM
1 comment, last by Keybee 23 years, 11 months ago
Hi all, I have a little problem. I want my program to check if the content of a file changes and if it does, then I want to show the content in a simple MessageBox() This is the code I use to show the content but I want it to check if the content has changed before it shows it. #include "fstream.h" char msg[200]; UpdateData(TRUE); ifstream ReadMsg("C:\test.txt"); ReadMsg.getline(msg, 200); MessageBox(msg, "Message Archive", MB_OK); Beginner
Beginner
Check the timestamp.
Advertisement
Huh? How do I do that? Thanks for the reply, Ill tell Santa youve been a good boy =P

Beginner

This topic is closed to new replies.

Advertisement