Update main.pas

Life 7.2
[Refactoring] Added new procedure for reading configuration data from text file.