import os
import csv

ifile = open("C:/Python26/testdata.csv", "r")

here is the error i get:

Traceback (most recent call last):
File "C:/Python26/06_June_2009/testhenry.py", line 4, in <module>
ifile = open("C:/Python26/testdata.csv", "r")
IOError: [Errno 2] No such file or directory: 'C:/Python26/testdata.csv'

I have no clue what to do. I can't read my file. Can someone please help me out?

my .csv file was incorrect. fixed it and it worked just fine.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.