Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Making a simple program that updates itself using internet...

Status
Not open for further replies.

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:)
 
Hello, it's me again...

I've done it:)
Simple drag an NMHTTP to your form from your fastnet tab, drag a memo, and then drag a button and write this on click:

nmhttp1.get ('memo1.text:=nmhttp1.body;

simple and easy:)
Any other example?
 
Not everyone will have a 'Fastnet' Tab of course, but I am sure there are Third party components that do the same thing !!

Steve..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top