Re: [Tutor] how to read and write to a file

2012-01-25 Thread Marc Tompkins
On Wed, Jan 25, 2012 at 3:30 PM, Steven D'Aprano wrote: > Steven D'Aprano wrote: > > (And yes, I deliberately had one fewer answer than question in the second >> case. Top posting makes it MUCH easier to miss questions.) >> > > Gah! Brain fart! Please ignore the comment in parentheses. > And I t

Re: [Tutor] how to read and write to a file

2012-01-25 Thread Steven D'Aprano
Steven D'Aprano wrote: (And yes, I deliberately had one fewer answer than question in the second case. Top posting makes it MUCH easier to miss questions.) Gah! Brain fart! Please ignore the comment in parentheses. -- Steven ___ Tutor maillist -

Re: [Tutor] how to read and write to a file

2012-01-25 Thread Steven D'Aprano
Joel Goldstick wrote: First of all, always remember to reply to all on the list. That keeps everyone in the loop. Second, don't 'top post'. Write your comments at the end of the thread so that people can follow the conversation. Sometimes its useful to intersperse comments in someone's previo

Re: [Tutor] how to read and write to a file

2012-01-25 Thread ken brockman
o: ken brockman Cc: tutor@python.org Sent: Wednesday, January 25, 2012 12:00 PM Subject: Re: [Tutor] how to read and write to a file On Wed, Jan 25, 2012 at 11:30 AM, ken brockman wrote: > Okay, got ya. Mea Culpa. > Being misanthropic by nature I've not used or engaged  in a inter

Re: [Tutor] how to read and write to a file

2012-01-25 Thread Joel Goldstick
have two lists and two files. Is it possible to store both lists in >> one file? I wouldn't imagine you could, but hey, doesn't hurt to ask. >> Thanks again. >> >> Ken >> >> ________________ >> From: Joel Goldstick >> To:

Re: [Tutor] how to read and write to a file

2012-01-25 Thread ken brockman
r no? Thanks one and all, for the help. Ken From: Joel Goldstick To: ken brockman Cc: tutor@python.org Sent: Wednesday, January 25, 2012 11:04 AM Subject: Re: [Tutor] how to read and write to a file On Wed, Jan 25, 2012 at 10:50 AM, ken brockman wrote: &g

Re: [Tutor] how to read and write to a file

2012-01-25 Thread Joel Goldstick
could, but hey, doesn't hurt to ask. > Thanks again. > > Ken > > > From: Joel Goldstick > To: Alexander > Cc: ken brockman ; tutor@python.org > Sent: Wednesday, January 25, 2012 9:54 AM > > Subject: Re: [Tutor] how to read and write to a

Re: [Tutor] how to read and write to a file

2012-01-25 Thread Joel Goldstick
On Wed, Jan 25, 2012 at 9:14 AM, Alexander wrote: > On Wed, Jan 25, 2012 at 8:32 AM, ken brockman wrote: >> >> >> >> From: Alexander >> To: ken brockman >> Cc: "tutor@python.org" >> Sent: Wednesday, Janua

Re: [Tutor] how to read and write to a file

2012-01-25 Thread Alexander
On Wed, Jan 25, 2012 at 8:32 AM, ken brockman wrote: > > > > From: Alexander > To: ken brockman > Cc: "tutor@python.org" > Sent: Wednesday, January 25, 2012 7:38 AM > Subject: Re: [Tutor] how to read and write to a file >

Re: [Tutor] how to read and write to a file

2012-01-25 Thread Alexander
On Wed, Jan 25, 2012 at 7:19 AM, ken brockman wrote: > I would like to write to and read from a file from python. I wanted to use > the file to save input to the program in a list. I have been looking around > and there seems to be several ways to go about it. I tried pickling, but am > having an