thieumao

Ghi File

Apr 6th, 2013
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.25 KB | None | 0 0
  1. program GhiFile;
  2. uses crt;
  3. var
  4.   F: Text;
  5.   path,s: string;
  6. begin
  7.   clrscr;
  8.   write('Nhap path file: ');
  9.   readln(path);
  10.   assign(F, path);
  11.   rewrite(F);
  12.   write('Nhap noi dung can ghi: ');
  13.   readln(s);
  14.   writeln(F, s);
  15.   close(F);
  16. end.
Advertisement
Add Comment
Please, Sign In to add comment