I am old pascal programmer, but now i teaching pascal and need to understand
the old input

program readtest;
var
  x:integer;
  y:integer;
  s:string;
begin
  read(x, y, s);
  writeln();
  writeln(x,y,'"',s,'"');
  readln;
end.
-------------
10 50 Hello

how to use read() procedure to read multiple variable one of them is string
type
in example above it read x, y correclty, but variable s take a first space
before the text.
How i can manage to read the string after integer with simple read?.


-- 
Zaher Dirkey
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to