0

I have some text files (actually csv) that have the extension .ROS stored on a server and I can't seem to open them in Python. If I change the extension to .txt or .csv, I can open them fine either as text or csv, but I'd rather keep the .ROS extension.

More concretely, I have two identical files (other than the file name) on my server and...

This works:

import csv
from urllib2 import urlopen
data = csv.reader(urlopen("http://faculty.uml.edu/klevasseur/MON1991.txt"))

but this doesn't:

data = csv.reader(urlopen("http://faculty.uml.edu/klevasseur/MON1991.ROS"))

I'm a novice to this part of Python, so can anyone point me in the right direction?

Ken

3
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by vegaseat
0

Check that you can open the file in your browser, the second is not found, so it does not exist.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.