Re: [Tutor] appending to a file on a new line

2012-01-19 Thread Dave Angel
On 01/19/2012 10:04 AM, ADRIAN KELLY wrote: guys, its a text file i am writing to and when i write the first time its fine, i get 3 lines of input collected from a user and written to my text file, however if i run the program again the next 3 lines begin at the end of the previous users detai

Re: [Tutor] appending to a file on a new line

2012-01-19 Thread ADRIAN KELLY
pointer left off. i dont know how to solve this. where do i put the '\n'? to be honest the .join i dont understand but otherwise it prints as a list e.g. ('name','age','etc') Adrian > Date: Thu, 19 Jan 2012 09:42:45 -0500 > Subject: Re: [T

Re: [Tutor] appending to a file on a new line

2012-01-19 Thread Dave Angel
On 01/19/2012 09:32 AM, ADRIAN KELLY wrote: Hi everyone, is there an easy way to write to a file (that already exists with data contained) on a new line. I understand that the file pointer appends where it left off but how do i write to the next line or even skip a line if possible? User_info

Re: [Tutor] appending to a file on a new line

2012-01-19 Thread Joel Goldstick
On Thu, Jan 19, 2012 at 9:32 AM, ADRIAN KELLY wrote: > Hi everyone, > is there an easy way to write to a file (that already exists with data > contained) on a new line.  I understand that the file pointer appends where > it left off but how do i write to the next line or even skip a line if > poss

[Tutor] appending to a file on a new line

2012-01-19 Thread ADRIAN KELLY
Hi everyone, is there an easy way to write to a file (that already exists with data contained) on a new line. I understand that the file pointer appends where it left off but how do i write to the next line or even skip a line if possible? User_info=open("C:\\Documents and Settings\\akelly\\D