Re: [Tutor] Adding Value to CSV

2009-11-02 Thread Dave Angel
(Please don't top-post on a newsgroup that has the convention of adding new content after quoted text.) Paras K. wrote: What I am trying to do is as I am writing the row to the CSV file, I want to add the string base on a few other checks that I still need to write. Ex. readline = '"152.88.91

Re: [Tutor] Adding Value to CSV

2009-11-02 Thread Christian Witts
Paras K. wrote: What I am trying to do is as I am writing the row to the CSV file, I want to add the string base on a few other checks that I still need to write. Ex. readline = '"152.88.91.98","BitTorrent Client Activity","1","2009-09-23 15:40:33"\r\n' At the end of this based on my check

Re: [Tutor] Adding Value to CSV

2009-11-02 Thread Paras K.
What I am trying to do is as I am writing the row to the CSV file, I want to add the string base on a few other checks that I still need to write. Ex. readline = '"152.88.91.98","BitTorrent Client Activity","1","2009-09-23 15:40:33"\r\n' At the end of this based on my checks I want to be able to

Re: [Tutor] Adding Value to CSV

2009-11-01 Thread Dave Angel
Paras K. wrote: I have some code that is going through a number of test. When I have the line that has been read I need to add another value at the end of it, or write the information into another csv file Example of my code: for line in fh.readlines(): readline = line

Re: [Tutor] Adding Value to CSV

2009-10-31 Thread Alan Gauld
"Paras K." wrote When I have the line that has been read I need to add another value at the end of it, or write the information into another csv file If you are dealing with csv fioles you should look at using the csv module. for line in fh.readlines(): readline = line

[Tutor] Adding Value to CSV

2009-10-31 Thread Paras K.
I have some code that is going through a number of test. When I have the line that has been read I need to add another value at the end of it, or write the information into another csv file Example of my code: for line in fh.readlines(): readline = line ipline = readline