Browse Source

fixed assignstream example

michael 27 years ago
parent
commit
cbc6210e24
1 changed files with 7 additions and 3 deletions
  1. 7 3
      docs/linuxex/ex38.pp

+ 7 - 3
docs/linuxex/ex38.pp

@@ -12,8 +12,12 @@ begin
   if not (paramstr(1)='-son') then
   if not (paramstr(1)='-son') then
     begin
     begin
     Writeln ('Calling son');
     Writeln ('Calling son');
-    Assignstream (Si,So,'/home/michael/fpk/rtl/linux/ex38a -son');
-    if linuxerror<>0 then writeln ('AssignStream failed !');
+    Assignstream (Si,So,'./ex38 -son');
+    if linuxerror<>0 then 
+      begin
+      writeln ('AssignStream failed !');
+      halt(1);
+      end;
     Writeln ('Speaking to son');
     Writeln ('Speaking to son');
     For i:=1 to 10 do 
     For i:=1 to 10 do 
       begin
       begin
@@ -42,6 +46,6 @@ begin
       else 
       else 
          writeln ('Who are you ?');
          writeln ('Who are you ?');
       end;
       end;
-//    close (output);
+    close (output);
     end 
     end 
 end.
 end.