Guest_imported
New member
- Jan 1, 1970
- 0
Hello,
I'm trying to make a program that updates itself using internet.
It must do the following things:
1. Read a file located at "2. Add to a list box the entire file.
example:
if the file is in my computer I do the following thing:
var
ficheiro1:textfile;
text1:string;
begin
listbox1.items.clear;
assignfile (ficheiro1,'text.txt');
reset (ficheiro1);
while not eof (ficheiro1) do
begin
readln (ficheiro1,text1);
listbox1.items.add (text1);
end;
closefile (ficheiro1);
end;
The questions are:
How do I read a file from internet???
I see some programs do it but no source code
If you don't understand I could explain better
I'm trying to make a program that updates itself using internet.
It must do the following things:
1. Read a file located at "2. Add to a list box the entire file.
example:
if the file is in my computer I do the following thing:
var
ficheiro1:textfile;
text1:string;
begin
listbox1.items.clear;
assignfile (ficheiro1,'text.txt');
reset (ficheiro1);
while not eof (ficheiro1) do
begin
readln (ficheiro1,text1);
listbox1.items.add (text1);
end;
closefile (ficheiro1);
end;
The questions are:
How do I read a file from internet???
I see some programs do it but no source code
If you don't understand I could explain better