Remote files?

R

rduby1

I need to read the contents of 2 files on a remote webserver, for
example: http://www.domain.com/box/text.txt

The first file is a plain-text file and the other is a binary file
(photo).

Text file:
I need to read the text and keep in memory

Binary file:
Basically I just need to move the contents to my own server and store
it in a new file.

Can anyone send me on the right track?
 
J

Jano Svitok

I need to read the contents of 2 files on a remote webserver, for
example: http://www.domain.com/box/text.txt

The first file is a plain-text file and the other is a binary file
(photo).

Text file:
I need to read the text and keep in memory

Binary file:
Basically I just need to move the contents to my own server and store
it in a new file.

Can anyone send me on the right track?

open-uri, net/http
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,285
Messages
2,571,416
Members
48,111
Latest member
PorterZ31

Latest Threads

Top