<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&nbsp;<br>&nbsp; &nbsp; location: '<a href="http://www.squeaksource.com/CSV'" target="_top">http://www.squeaksource.com/CSV'</a><br>&nbsp; &nbsp; user: ''&nbsp;<br>&nbsp; &nbsp; password: ‘'</span><br><br><div>Sent from my iPhone</div></div><div><br>On Jun 17, 2016, at 3:35 PM, Joseph Alotta &lt;<a href="mailto:joseph.alotta@gmail.com">joseph.alotta@gmail.com</a>&gt; 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>&gt; On Jun 17, 2016, at 5:05 PM, cbc [via Smalltalk] &lt;<a href="/user/SendEmail.jtp?type=node&amp;node=4901576&amp;i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt; wrote:
<br>&gt; 
<br>&gt; Hi Joseph,
<br>&gt; these methods are now in the package located at:
<br>&gt; MCHttpRepository
<br>&gt; &nbsp; &nbsp; location: '<a href="http://www.squeaksource.com/CSVData'" target="_top" rel="nofollow" link="external">http://www.squeaksource.com/CSVData'</a><br>&gt; &nbsp; &nbsp; user: ''
<br>&gt; &nbsp; &nbsp; password: ''
<br>&gt; (follow Ron's excellent advice on how to use this).
<br>&gt; 
<br>&gt; That said, I would no longer use this package to parse CSV - I've recently switched over to Avi's parser as well.
<br>&gt; (My package still has some interesting uses for the data once you pull it in. &nbsp;Of course, it isn't documented.)
<br>&gt; 
<br>&gt; I should clean up the page that you found - I had forgotten that it even existed!
<br>&gt; 
<br>&gt; On Fri, Jun 17, 2016 at 1:42 PM, Joseph Alotta &lt;[hidden email]&gt; wrote:
<br>&gt; Greetings,
<br>&gt; 
<br>&gt; I am needing conceptual help with parsing these troublesome CSV files. &nbsp;I was breaking the lines using String &gt;&gt; findToken:
<br>&gt; but I found lines where extra deliminators were added. &nbsp;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>&gt; 
<br>&gt; 
<br>&gt; 02/04/2016 &nbsp;Thu,,"COSTCO WHSE #0388 000000000990388 - OAK BROOK, IL",,,,,37.00,,,,,,,,
<br>&gt; 02/05/2016 &nbsp;Fri,,"ELECTRONIC PAYMENT RECEIVED-THANK",,,,,-443.52,,,,,,,,
<br>&gt; 02/06/2016 &nbsp;Sat,,"COSTCO WHSE #1088 000000000991088 - BOLINGBROOK, IL",,,,,50.86,,,,,,,,
<br>&gt; 
<br>&gt; I think I need to parse with the double quotes in mind, but I don’t know where to break it.
<br>&gt; 
<br>&gt; Also, I was reading in the squeak pages that someone had already written code for this, but I couldn’t find anything.
<br>&gt; 
<br>&gt; <a href="http://wiki.squeak.org/squeak/3260" target="_top" rel="nofollow" link="external">http://wiki.squeak.org/squeak/3260</a>&nbsp;has two methods, CSVSubstrings and <a href="http://sequenceablecollection-ascsvline.st">SequenceableCollection-asCSVLine.st</a>
<br>&gt; 
<br>&gt; Does anyone know where these are now?
<br>&gt; 
<br>&gt; Sincerely,
<br>&gt; 
<br>&gt; Joe.
<br>&gt; 
<br>&gt; 
<br>&gt; 
<br>&gt; _______________________________________________
<br>&gt; Beginners mailing list
<br>&gt; [hidden email]
<br>&gt; <a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_top" rel="nofollow" link="external">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br>&gt; 
<br>&gt; 
<br>&gt; _______________________________________________ 
<br>&gt; Beginners mailing list 
<br>&gt; [hidden email] 
<br>&gt; <a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_top" rel="nofollow" link="external">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br>&gt; 
<br>&gt; 
<br>&gt; If you reply to this email, your message will be added to the discussion below:
<br>&gt; <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>&gt; To start a new topic under Squeak - Beginners, email <a href="/user/SendEmail.jtp?type=node&amp;node=4901576&amp;i=1" target="_top" rel="nofollow" link="external">[hidden email]</a> 
<br>&gt; To unsubscribe from Squeak - Beginners, click here.
<br>&gt; 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>