[Tutor] odd behavior when renaming a file

Prasad, Ramit ramit.prasad at jpmorgan.com
Thu May 10 23:05:13 CEST 2012

> I have to process a csv file from a business partner.  Oddly (?) they
> don't quote text fields, and the Title field sometimes contains
> commas.  So I wrote some code to count the commas in each line and if
> there were too many, I removed the extras and wrote the cleaned up
> file to the original filename for the rest of what I have to with that
> data

That is terrible (of them). How do you determine which comma is the "extra"?


Ramit Prasad | JPMorgan Chase Investment Bank | Currencies Technology
712 Main Street | Houston, TX 77002
work phone: 713 - 216 - 5423


This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of
securities, accuracy and completeness of information, viruses,
confidentiality, legal privilege, and legal entity disclaimers,
available at http://www.jpmorgan.com/pages/disclosures/email.  

More information about the Tutor mailing list