I run into a problem in opening a file in Python

J

Justin Park

The problem is simple.
I have 50taxa2HGT_1.txt in the current directory,
and I can open it using any text editor (which indicates there actually
is.)

And I can read it in Python using.... print line

But when I change the file access mode into "a",
it returns an error message of "IOError: [Errno 9] Bad file descriptor. "

What have I done wrong?

Thanks in advance,
 

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

No members online now.

Forum statistics

Threads
474,172
Messages
2,570,934
Members
47,474
Latest member
AntoniaDea

Latest Threads

Top