SHARE
TWEET

Untitled

a guest Jan 21st, 2013 20 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. type
  2.   auto = record
  3.     number: string;
  4.     surname: string;
  5.     brand: string;
  6.   end;
  7. var
  8.   a: auto;
  9.   f: text;
  10.   ch: char;
  11.   i: integer;
  12.   s: string;
  13. begin
  14.   assign(f,'C:\1.txt');
  15.   reset(f);
  16.   i:=0;
  17.   while (ch<>',') or (ch<>'.') or (ch<>' ') do
  18.     begin
  19.       i:=i+1;
  20.       read(f,ch);
  21.       s[i]:=ch;
  22.     end;
  23.   a.number:=s;
  24.   writeln(a.number);
  25. end.
  26.  
  27. файл:
  28. 4568 файл правка,
  29. 1234 формат вид.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top