<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Use this one for parsing:</div><div><br></div><div><span style="background-color: rgba(255, 255, 255, 0);">MCHttpRepository <br> location: '<a href="http://www.squeaksource.com/CSV'" target="_top">http://www.squeaksource.com/CSV'</a><br> user: '' <br> password: ‘'</span><br><br><div>Sent from my iPhone</div></div><div><br>On Jun 17, 2016, at 3:35 PM, Joseph Alotta <<a href="mailto:joseph.alotta@gmail.com">joseph.alotta@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div>So which package should I use to parse CSV data?
<br><br><br><div class="shrinkable-quote"><br>> On Jun 17, 2016, at 5:05 PM, cbc [via Smalltalk] <<a href="/user/SendEmail.jtp?type=node&node=4901576&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>> wrote:
<br>>
<br>> Hi Joseph,
<br>> these methods are now in the package located at:
<br>> MCHttpRepository
<br>> location: '<a href="http://www.squeaksource.com/CSVData'" target="_top" rel="nofollow" link="external">http://www.squeaksource.com/CSVData'</a><br>> user: ''
<br>> password: ''
<br>> (follow Ron's excellent advice on how to use this).
<br>>
<br>> That said, I would no longer use this package to parse CSV - I've recently switched over to Avi's parser as well.
<br>> (My package still has some interesting uses for the data once you pull it in. Of course, it isn't documented.)
<br>>
<br>> I should clean up the page that you found - I had forgotten that it even existed!
<br>>
<br>> On Fri, Jun 17, 2016 at 1:42 PM, Joseph Alotta <[hidden email]> wrote:
<br>> Greetings,
<br>>
<br>> I am needing conceptual help with parsing these troublesome CSV files. I was breaking the lines using String >> findToken:
<br>> but I found lines where extra deliminators were added. Notice the three following lines, the first and third line have extra commas from Oak Brook, IL and the second line does not have the comma.
<br>>
<br>>
<br>> 02/04/2016 Thu,,"COSTCO WHSE #0388 000000000990388 - OAK BROOK, IL",,,,,37.00,,,,,,,,
<br>> 02/05/2016 Fri,,"ELECTRONIC PAYMENT RECEIVED-THANK",,,,,-443.52,,,,,,,,
<br>> 02/06/2016 Sat,,"COSTCO WHSE #1088 000000000991088 - BOLINGBROOK, IL",,,,,50.86,,,,,,,,
<br>>
<br>> I think I need to parse with the double quotes in mind, but I don’t know where to break it.
<br>>
<br>> Also, I was reading in the squeak pages that someone had already written code for this, but I couldn’t find anything.
<br>>
<br>> <a href="http://wiki.squeak.org/squeak/3260" target="_top" rel="nofollow" link="external">http://wiki.squeak.org/squeak/3260</a> has two methods, CSVSubstrings and <a href="http://sequenceablecollection-ascsvline.st">SequenceableCollection-asCSVLine.st</a>
<br>>
<br>> Does anyone know where these are now?
<br>>
<br>> Sincerely,
<br>>
<br>> Joe.
<br>>
<br>>
<br>>
<br>> _______________________________________________
<br>> Beginners mailing list
<br>> [hidden email]
<br>> <a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_top" rel="nofollow" link="external">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br>>
<br>>
<br>> _______________________________________________
<br>> Beginners mailing list
<br>> [hidden email]
<br>> <a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_top" rel="nofollow" link="external">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br>>
<br>>
<br>> If you reply to this email, your message will be added to the discussion below:
<br>> <a href="http://forum.world.st/CSV-file-help-tp4901546p4901574.html" target="_top" rel="nofollow" link="external">http://forum.world.st/CSV-file-help-tp4901546p4901574.html</a><br>> To start a new topic under Squeak - Beginners, email <a href="/user/SendEmail.jtp?type=node&node=4901576&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a>
<br>> To unsubscribe from Squeak - Beginners, click here.
<br>> NAML
</div><br>
        
        
        
<br><hr align="left" width="300">
View this message in context: <a href="http://forum.world.st/CSV-file-help-tp4901546p4901576.html">Re: CSV file help</a><br>
Sent from the <a href="http://forum.world.st/Squeak-Beginners-f107673.html">Squeak - Beginners mailing list archive</a> at <a href="http://nabble.com">Nabble.com</a>.<br></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Beginners mailing list</span><br><span><a href="mailto:Beginners@lists.squeakfoundation.org">Beginners@lists.squeakfoundation.org</a></span><br><span><a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a></span><br></div></blockquote></body></html>