thoga31

AppendToTextFile

Sep 19th, 2013
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.26 KB | None | 0 0
  1. type TArrString = array of string;
  2.  
  3. procedure AppendToTextFile(FileName : string; const contents : TArrString);
  4. var f : text;
  5.     elem : string;
  6. begin
  7.    assign(f, FileName);
  8.    append(f);
  9.    for elem in contents do
  10.       writeln(f, elem);
  11.    close(f);
  12. end;
Advertisement
Add Comment
Please, Sign In to add comment