Ok, I have found the help for open dialog and pasted the code directly from the help (below) into my code, but when I try to run it, NOTHING HAPPENS!!!
var
F: TextFile;
S: string;
begin
if OpenDialog1.Execute then { Display Open dialog box }
begin
AssignFile(F, OpenDialog1.FileName);
Reset(F);
Readln(F, S); { Read first line of file }
CloseFile(F);
end;
end;
Yep - the code you posted should read a line of text as far as I can see. I was actually drawn to this post by your "handle" of "lespaul" as it reminds me of my guitar (I have a Les Paul .) Anyway - hope you got your problem sorted.
Er.. Well I bought it around 1978/9 I think so.. quite old I guess. At some point Im going to get round to getting it serviced (has not been out of the case in about 10 years and I noticed I have a couple control knobs missing.)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.