Text File Update
-
I have an App. A which is accessing a text file. I have created App. B to update automatically the contents of the text file. But I do not want to exit App. A just to recognize my changes. What should I do to make this possible. The only changes I can do is on App. B, since I have just created that application.:confused:
-
I have an App. A which is accessing a text file. I have created App. B to update automatically the contents of the text file. But I do not want to exit App. A just to recognize my changes. What should I do to make this possible. The only changes I can do is on App. B, since I have just created that application.:confused:
-
I have an App. A which is accessing a text file. I have created App. B to update automatically the contents of the text file. But I do not want to exit App. A just to recognize my changes. What should I do to make this possible. The only changes I can do is on App. B, since I have just created that application.:confused:
It sounds like you want
FindNextChangeNotification()
orReadDirectoryChangesW()
. Yes?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
-
It sounds like you want
FindNextChangeNotification()
orReadDirectoryChangesW()
. Yes?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
-
Sorry but that is not how it should work since APP A might be using the file but at the same time APP B will be updating the same text file. I would start APP B anytime to make the necessary changes of the text file.
Either of the two functions that I mentioned can be used by app B to be notified after app A has made changes to some file. Once app B has received notification, it can update the file accordingly. If there is a chance that app A will update the file before app B has finished, I do not know of a solution since you cannot change app A.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow