fstream question (beginner)
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement