Browse Source

POpen opened files should not be rewritten

michael 26 years ago
parent
commit
d3b493a609
1 changed files with 0 additions and 1 deletions
  1. 0 1
      docs/linuxex/ex37.pp

+ 0 - 1
docs/linuxex/ex37.pp

@@ -21,7 +21,6 @@ begin
   close (f);
   close (f);
   chmod ('test21a',octal (755));
   chmod ('test21a',octal (755));
   popen (f,'./test21a arg1 arg2','W');
   popen (f,'./test21a arg1 arg2','W');
-  rewrite (f);
   if linuxerror<>0 then 
   if linuxerror<>0 then 
      writeln ('error from POpen : Linuxerror : ', Linuxerror);
      writeln ('error from POpen : Linuxerror : ', Linuxerror);
   for i:=1 to 10 do 
   for i:=1 to 10 do