Advertisement
Guest User

Untitled

a guest
Jan 3rd, 2014
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. procedure LoadDictionary;
  2. var
  3. DictionaryFile: LongInt;
  4. FailedLoad: Boolean;
  5. begin
  6. DictionaryFile := OpenFile(DictionaryPath, False);
  7. FailedLoad := False;
  8. if (not (ReadFileString(DictionaryFile, Dictionary, FileSize(DictionaryFile)))) then
  9. begin
  10. WriteLn('Failed To Load Dictionary');
  11. FailedLoad := True;
  12. end;
  13. CloseFile(DictionaryFile);
  14. if (FailedLoad) then
  15. TerminateScript;
  16. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement