소스 검색

+ Example did not close open files

michael 27 년 전
부모
커밋
ba17acc6a8
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      docs/refex/ex6.pp

+ 2 - 0
docs/refex/ex6.pp

@@ -20,4 +20,6 @@ begin
   Until (NumRead=0) or (NumWritten<>NumRead);
   Write ('Copied ',Total,' bytes from file ',paramstr(1));
   Writeln (' to file ',paramstr(2));
+  close(fin);
+  close(fout);
 end.