(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
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
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
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
"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
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