Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- procedure LoadDictionary;
- var
- DictionaryFile: LongInt;
- FailedLoad: Boolean;
- begin
- DictionaryFile := OpenFile(DictionaryPath, False);
- FailedLoad := False;
- if (not (ReadFileString(DictionaryFile, Dictionary, FileSize(DictionaryFile)))) then
- begin
- WriteLn('Failed To Load Dictionary');
- FailedLoad := True;
- end;
- CloseFile(DictionaryFile);
- if (FailedLoad) then
- TerminateScript;
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement