How to Read From Text Files with Multiple Formats
The demo demonstrates how to parse a text file named testfile.txt with multiple formats in Delphi using .Net Runtime Library for Delphi.
To parse a text file with multiple formats: Add a text file named testfile.txt to your project.
Add the following content to the text file:
Err 1001 Cannot access resource.
Err 2014 Resource not found.
Acc 10/03/2009User1 Administrator.
Err 0323 Warning: Invalid access attempt.
Acc 10/03/2009User2 Standard user.
Acc 10/04/2009User2 Standard user.