Skip to content

Instantly share code, notes, and snippets.

@krofna
Created March 1, 2014 21:54
Show Gist options
  • Select an option

  • Save krofna/9298078 to your computer and use it in GitHub Desktop.

Select an option

Save krofna/9298078 to your computer and use it in GitHub Desktop.
type kuh = record
kuhar : string;
jelo : string;
ocjena : integer;
end;
var f : file of kuh;
var i : integer;
var d : kuh;
begin
assign(f, 'kuh.bin');
rewrite(f);
for i := 1 to 5 do
begin
read(d.kuhar);
read(d.jelo);
read(d.ocjena);
write(f, d);
end;
close(f);
end.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment