Downlod from FTP, pickle

S

SMALLp

Hy!

I have a little problem. I have to download file from FTP sp i use
ftplib. And then i have to pickle.load from that file. I make callback
function that saves line by line into temporary file and now i cant read
from that file and when i close it i diapers.

Thanks!
 
T

Tommy Nordgren

Hy!

I have a little problem. I have to download file from FTP sp i use
ftplib. And then i have to pickle.load from that file. I make callback
function that saves line by line into temporary file and now i cant
read
from that file and when i close it i diapers.

Thanks!
You need to rewind the temporary file before reading.
-----------------------------------
See the amazing new SF reel: Invasion of the man eating cucumbers from
outer space.
On congratulations for a fantastic parody, the producer replies :
"What parody?"

Tommy Nordgren
(e-mail address removed)
 

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,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top