Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python
write to specific line in file?
 

Index | Next | Previous | View Flat


skanemupp at yahoo

May 16, 2008, 11:41 AM


Views: 330
Permalink
write to specific line in file?

i ahve a program that takes certain textsnippets out of one file and
inserts them into another.

problem is it jsut overwrites the first riow every time.

i want to insert every new piece of text into the next row.
so:
1. how do i write to a new line every time i write to the file?

2. if i dont want to write to a new line but just want to insert it
after the last token in the file, how do i do then?
--
http://mail.python.org/mailman/listinfo/python-list

Subject User Time
write to specific line in file? skanemupp at yahoo May 16, 2008, 11:41 AM
    Re: write to specific line in file? iqbaltalaat at gmail May 16, 2008, 11:53 AM
    Re: write to specific line in file? bbxx789_05ss at yahoo May 16, 2008, 12:25 PM
    Re: write to specific line in file? castironpi at gmail May 16, 2008, 3:22 PM
    Re: write to specific line in file? castironpi at gmail May 16, 2008, 3:57 PM
    Re: write to specific line in file? castironpi at gmail May 17, 2008, 5:58 PM
    Re: write to specific line in file? gagsl-py2 at yahoo May 17, 2008, 8:50 PM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.