How to read a file from another server? Newbie
djw
dwelch91 at comcast.net
Mon Apr 26 21:55:11 EDT 2004
Ivan Voras wrote:
> Edward Diener wrote:
>
>> Sean Berry wrote:
>>
>>> I am trying to read in a file from another server.
>>>
>>> If I try
>>> x = open("servername:/path/to/file", "r")
>>
>>
>>
>> x = open("servername://path/to/file", "r")
>
>
> Um, what does this to? What protocol does it use?
I can see how this might work for a Windows server, but wouldn't the
forward slashes need to be back slashes? And the path to the file would
have to be a shared drive on the server.
-D
More information about the Python-list
mailing list