in reply to read file line by line then do something and write to same file

hi john.tm,

I am trying to open a file for reading and writing. i open the csv file

Think of CSV files? At least think Text::CSV or Text::CSV_XS and you will do away with "hand-picking" of values.

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me
  • Comment on Re: read file line by line then do something and write to same file