I’m writing a small program to save in a file the content of a TEdit control.
The idea is that user write something in a TEdit control and then push button to write file on disk, but when try to compile I got “unit1.pas(37,15) Error: Wrong number of parameters specified for call to “Close” “
My form only have the TEdit control and a TButton.
var
Form1: TForm1;
f: text;
procedure TForm1.Button1Click(Sender: TObject);
begin
writeln (f,Edit1.Text);
close (f);
end;
Begin
assign (f,'code.txt');
rewrite (f);
end.
What the hell I’m doing wrong???
With a little googling I found this