Advertisement
Janilabo

read

Dec 2nd, 2013
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.34 KB | None | 0 0
  1. var
  2.   s: string;
  3.   f: Integer;
  4.   t: TStringArray;
  5.  
  6. begin
  7.   ClearDebug;
  8.   f := OpenFile(ScriptPath + 'changelog.txt', False);
  9.   ReadFileString(f, s, FileSize(f));
  10.   CloseFile(f);
  11.   f := GetSystemTime;
  12.   t := Explode(#10, s);
  13.   WriteLn('Simba: ' + IntToStr(GetSystemTime - f) + ' ms. [' + IntToStr(Length(t)) + ']');
  14.   SetLength(t, 0);
  15. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement