Read and Write Text Files

  • Thread starter Thread starter scorpion53061
  • Start date Start date
S

scorpion53061

Is it possible to read and write to text files that are remote (sitting on
my server that can be accessed from the internet.)
 
scorpion53061 said:
Is it possible to read and write to text files that are remote
(sitting on my server that can be accessed from the internet.)

Yes, theoretically. It depends on what the server can do. What kinds of
protocols can you use to access the server in read/write mode? FTP?
Something else? Without that information we can't really help you here.
 
Hi Scorpion,

I think very much methods in very different ways, however you first have to
find out how you want do your security.

Cor
 
I am accessing it via FTP.

Sven Groot said:
Yes, theoretically. It depends on what the server can do. What kinds of
protocols can you use to access the server in read/write mode? FTP?
Something else? Without that information we can't really help you here.
 
scorpion53061 said:
I am accessing it via FTP.

First of all, not that FTP has no real security. Sure you have
authentication, but your username/password will be sent in clear text, and
the communications after that are not encrypted either. So if security is a
real concern, investigate using other methods.

Unfortunately, .Net doesn't have any built in FTP support.

So you have basically have 3 options:
1. Find some FTP class someone else wrote. There's bound to be code for this
on the net, either free or otherwise, ranging from simple code samples to
full fledged class libraries.
2. Write your own. The FTP protocol is not that difficult, and you could use
option 1 to aid your own development.
3. Wrap WinInet's FTP implementation.

I'd go with number 1.
 
I already have a class.

it has a ftp download mechanism but I have not found a way to tell it to
just open the file.
 
Hi Scorpion,

I do not no this class. I only new it because I did long search for it, made
one with an Api and suddelnly someone made me attent on it, I never tried it
again.

However the webrequest is normaly a nice class.

And if it has no ftp adres than why is the name ftp webrequest.
(Maybe you can only download, however I expect you want that)

But do not forget to look at Kudzu (do I also not know however he says
himself that it is the best from the best and he is a little bit active in
the dotnet groups)

http://www.indyproject.org/indy.html

Cor
 
scorpion53061 said:
I already have a class.

it has a ftp download mechanism but I have not found a way to tell it to
just open the file.


You can't "just open the file". That's not possible per the FTP protocol.
Best you can do is download it, edit it locally, and upload it when you're
done.
 
Hi Sven,
You can't "just open the file". That's not possible per the FTP protocol.
Best you can do is download it, edit it locally, and upload it when you're
done.

You can download the file and than open it, there is nowhere a real
situation that you can open a file on internet there is always in one or the
other way a streaming situation (the same as on disk, and I am not talking
about a database). The only thing he can avoid is the write to disk in
advance. From all the messages from Scorpion I have seen that he is not that
aware to set a file tempory on the client disk.

I think that I myself would go for a webservice in his situation, however
than the security has to be set proper and giving advises about security is
for two reasons something I never do.

Just my thought,

Copr
 
Back
Top