I need to control a large log file during the day using C #. The size is 200-300 MB per day.What is the most effective way to analyze it? The file is locked by the manufacturer. Preferably, I would either read that I understand that the lines have been added or will read back.
The combination MemoryMappedFileand FileSystemWatchershould do the trick.
MemoryMappedFile
FileSystemWatcher
You will never achieve good results with C#.
C#
C++, MFC String 1GB.15-20 . char, 3 !!!!
C++
MFC String
1GB
char
C# , , C++ TCHAR, char, .
TCHAR
Change the log rotation to a lower value and then process the rotated logs — or — first process the entire log file and remember fileoffset / line for the next check interval.
Source: https://habr.com/ru/post/1754959/More articles:Varchar database sql database sql fields - sqlHow do you update / update a web design project on your clients? - javalog4j and java.lang.NoClassDefFoundError: org / apache / log4j / Layout - javaCan I use a variable to indicate the size of an array of struct elements? - c ++Insert / update / delete the number of rows from a stored procedure - Linq to SQL - c #Вызов внешнего веб-сервиса через сервлет - javaDirector online editor WYSIWYG - editorSave state in Android application - androidЛучший редактор Rich Text для веб-приложения, имеющего динамическую форму - javascriptKeyboard Interrupts - driverAll Articles