Autor Beitrag
DiamondDog
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 460



BeitragVerfasst: Mi 20.08.08 09:24 
Hallo Leute,
ich weiß zwar wie man einen Txt aus einer sich auf dem Rechner befindenden Textdatei auslesen kann, nur leider wollte ich jetzt den Text aus einer Textdatei auslesen die auf nem Webserver liegt.
Kann mir jemand sagen wie ich den Text von der Txt im Netz in ein Edit Feld bekomme?

Zur Beispiel Txt


Moderiert von user profile iconNarses: Topic aus Sonstiges (Delphi) verschoben am Mi 20.08.2008 um 10:39
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mi 20.08.08 09:48 
Lad die Datei runter und lese sie dann aus.
Timosch
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1314

Debian Squeeze, Win 7 Prof.
D7 Pers
BeitragVerfasst: Mi 20.08.08 09:57 
user profile iconLuckie hat folgendes geschrieben:
Lad die Datei runter und lese sie dann aus.

...was wiederum am einfachsten geht, indem man die Unit URLMon in die uses-Klausel einbindet und dann die Funktion URLDownloadToFile verwendet.

_________________
If liberty means anything at all, it means the right to tell people what they do not want to hear. - George Orwell
DiamondDog Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 460



BeitragVerfasst: Mi 20.08.08 10:13 
Kann man das nicht auch anders lösen?
Wollte nicht unbedingt immer die Txt Speichern müssen.
Vor allem da in der Txt ja nur immer eine Zahl stehen wird halt 1 oder 10 oder so.
Habs jetzt malso versucht so she ich die Zahl schon mal im WebBrowser nur wie kann ich dann damitarbeiten?

ausblenden Delphi-Quelltext
1:
2:
 Form1.WebBrowser1.Navigate('http://diamonddog.jeak.de/Beispiel.txt');
 Form1.WebBrowser1.SetFocus
nagel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 708

Win7, Ubuntu 10.10

BeitragVerfasst: Mi 20.08.08 10:22 
Am einfachsten und ohne Komponenten geht's wohl damit.
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Mi 20.08.08 10:40 
Moin!

Schonmal in die Suche geschaut? ;) Suche in: Delphi-Forum, Delphi-Library IDHTTP GET STRING :les:

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
DiamondDog Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 460



BeitragVerfasst: Mi 20.08.08 16:26 
super mit dem Vorschlag von @ nagel geht am besten 1000 Dank