Autor Beitrag
stigge
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 426

WinXP
Delphi 2007
BeitragVerfasst: Fr 16.02.07 15:27 
Ich möchte, das mein Programm eine Textdatei ausließt, die via FTP-Server erreichbar ist.
Ich bekomme aber immer einen Fehler:
The given path's format is not supported.

Mein momentaner Quelltext:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
implementation
  var ger: textfile;
      ver: string;
{$R *.nfm}

procedure TForm2.Button1Click(Sender: TObject);
begin
assignfile(ger, 'ftp://***');
reset(ger);
readln(ger, ver) ;
label1.Caption := ver;
closefile(ger);
end;

end.

Weiß jemand weiter?
Wenn ich den Pfad in die Browserzeile einfüge, funktioniert's ja auch!


Zuletzt bearbeitet von stigge am Mo 12.03.07 23:01, insgesamt 1-mal bearbeitet
Leuchtturm
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1087

Win Vista, Knoppix, Ubuntu
Delphi 7 Pe, Turbo Delphi, C#(VS 2005 Express), (X)HTML + CSS, bald Assembler
BeitragVerfasst: Fr 16.02.07 15:30 
Ich habe keine Ahnung vom Thema aber kann es sein das, das Problem ist dass die Datei auf einem FTP-Server liegt
Leuchtturm

_________________
Ich bin dafür verantwortlich was ich sage - nicht dafür was du verstehst.
Chryzler
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1097
Erhaltene Danke: 2



BeitragVerfasst: Fr 16.02.07 15:31 
AssignFile unterstützt das FTP-Protokoll nicht, wenn du verstehst was ich meine. Sieh dir mal Suche in der Entwickler-Ecke TIDFTP bzw Suche in der Entwickler-Ecke FTP an.
stigge Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 426

WinXP
Delphi 2007
BeitragVerfasst: Fr 16.02.07 15:37 
Ähm...ja ich beschäftige mich jetzt mal ne weile damit, vlt. bekomme ich's ja zum laufen...
stigge Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 426

WinXP
Delphi 2007
BeitragVerfasst: Fr 16.02.07 18:44 
Ich habe jetzt einiges ausprobiert aber es geht immer noch nicht :cry:
Mein Quelllcode...
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
procedure TForm2.Button1Click(Sender: TObject);

begin
idFTP1.Connect;
Self.idFTP1.Put('d:\magicians.txt''/', false);
end;

...und meine Fehlermeldung, nachdem ich auf den Knopf gedrückt habe:
ausblenden Quelltext
1:
Index was outside the bounds of the array					


Kann's mir nicht jemand Schritt für Schritt erklären????
Wäre sehr dankbar!
stigge Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 426

WinXP
Delphi 2007
BeitragVerfasst: Sa 17.02.07 13:15 
Und die Login-Daten stimmen auch auf jeden Fall...