I
I
Ivan Baturin2020-05-20 22:23:33
C++ / C#
Ivan Baturin, 2020-05-20 22:23:33

How to display changes to a file that is constantly updated?

There is a log file from the game. Messages from the chat get into it and the logs are resaved accordingly. It is necessary to write a method that will add new messages from the logs to the ListBox without having to reopen the file. How to implement it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Developer, 2020-05-20
@MrLumus

No way. If working with files, then the file must be opened / closed to update the data.
If you need up-to-date information at every moment of time, then you need to use other means. Databases, sockets, queues and more

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question