<HTML>
Can you use the pipe symbol (|) as a delimiter in VBNEB? In PHP that works. Then the other commas don't get in the way.<BR>
<BR>
VK3CFI <BR>
<BR>
<span style="font-weight: bold;">On Thu May 12 12:32 , 'ATKINSON-BUCK, Damien' <damien.atkinson-buck@ivanhoe.com.au> sent:<BR>
<BR>
</damien.atkinson-buck@ivanhoe.com.au></span><blockquote style="BORDER-LEFT: #F5F5F5 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT:
            0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">

<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:EN-AU;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->

<body link="blue" vlink="purple" lang="EN-AU">
<div class="WordSection1">
<p class="MsoNormal"><a name="_MailEndCompose"><span style="font-size:11.0pt;font-family:" calibri","sans-serif";color:#1f497d"="">No, I can’t seem to find a way to do that, but as a
<span style="text-decoration: underline;">very dodgy</span> workaround, edit the CSV file so that there’s a double comma separating each item and split on that, then you can keep a single comma inside some text<o:p></o:p></span></a></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:" calibri","sans-serif";color:#1f497d"="">Eg
<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt">1,,WE RUN THE NIGHT,,DJ Havana, Brown,,ISL/UMA<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:9.5pt;font-family:Consolas;color:blue">Dim</span><span style="font-size:9.5pt;font-family:Consolas"> Values()
<span style="color:blue">As</span> <span style="color:blue">String</span> = Split(strAlbumName,
<span style="color:#A31515">","</span>)<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:" calibri","sans-serif";color:#376092;mso-style-textfill-fill-color:#376092;mso-style-textfill-fill-alpha:100.0%"="">Would split everything
 normally and allow a comma between Havana and Brown. <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:" calibri","sans-serif";color:#1f497d"=""><o:p>&nbsp;</o:p></span></p>
<table class="MsoNormalTable" style="width:522.0pt" border="0" cellpadding="0" cellspacing="0" width="696">
<tbody>
<tr>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span style="font-size: 10pt; font-weight: bold;" arial","sans-serif";color:#1f497d"="">Damien Atkinson-Buck</span><span style="font-size:10.0pt;font-family:" arial","sans-serif";color:#1f497d"=""><BR>

Member of Academic Staff (Secondary)</span><span style="font-size:11.0pt;font-family:" calibri","sans-serif";color:#1f497d"=""><o:p></o:p></span></p>
<div>
<div class="MsoNormal"><span style="font-size:10.0pt;font-family:" arial","sans-serif";color:#1f497d"="">
<hr style="width:375.0pt" align="left" size="2" width="500">
</span></div>
</div>
</td>
</tr>
<tr>
<td style="padding:0cm 0cm 0cm 0cm">
<table class="MsoNormalTable" style="width:522.0pt" border="0" cellpadding="0" cellspacing="0" width="696">
<tbody>
<tr>
<td style="width:123.0pt;padding:0cm 0cm 0cm 0cm" width="164">
<p class="MsoNormal"><a target="_blank" href="http://myivanhoe.net/"><span style="font-size:11.0pt;font-family:" calibri","sans-serif";text-decoration:none"=""><img src="" alt="Blocked image"></span></a><span style="font-family:" calibri","sans-serif";color:#1f497d"=""><o:p></o:p></span></p>
</td>
<td style="width:3.75pt;padding:0cm 0cm 0cm 0cm" width="5">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:" calibri","sans-serif";color:#1f497d"="">&nbsp;</span><span style="font-family:" calibri","sans-serif";color:#1f497d"=""><o:p></o:p></span></p>
</td>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:" arial","sans-serif";color:#1f497d"="">PO&nbsp;BOX&nbsp;91 The Ridgeway, Ivanhoe, Victoria 3079 Australia<BR>

Telephone +61 3 9490 3848 Facsimile +61 3 9490 3490<BR>

</span><a href="javascript:top.opencompose('damien.atkinson-buck@ivanhoe.com.au','','','')"><span style="font-size:7.5pt;font-family:" arial","sans-serif""="">mailto:damien.atkinson-buck@ivanhoe.com.au</span></a><span style="font-size:7.5pt;font-family:" arial","sans-serif";color:#1f497d"=""><BR>

</span><a target="_blank" href="http://myivanhoe.net/"><span style="font-size:7.5pt;font-family:" arial","sans-serif""="">http://myivanhoe.net</span></a><span style="font-family:" calibri","sans-serif";color:#1f497d"=""><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:" calibri","sans-serif";color:#1f497d"=""><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:" calibri","sans-serif";color:#1f497d"=""><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-weight: bold;" tahoma","sans-serif""="" lang="EN-US">From:</span><span style="font-size:10.0pt;font-family:" tahoma","sans-serif""="" lang="EN-US"> Mark KELLY [mailto:kel@mckinnonsc.vic.edu.au]
<BR>

<span style="font-weight: bold;">Sent:</span> Thursday, 12 May 2011 11:19 AM<BR>

<span style="font-weight: bold;">To:</span> Year 12 Software Development Teachers' Mailing List<BR>

<span style="font-weight: bold;">Subject:</span> Re: [Year 12 SofDev] Reading and Writing text data files in VB2010<o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">I've just tested it, and Split() does not honour quotation marks: it reads them in with the rest of the text.&nbsp;
<BR>

So if a data item contained a comma, it would be seen as a delimiter&nbsp; :-(<o:p></o:p></p>
<div>
<p class="MsoNormal">On 12 May 2011 09:37, ATKINSON-BUCK, Damien &lt;<a href="javascript:top.opencompose('Damien.ATKINSON-BUCK@ivanhoe.com.au','','','')">Damien.ATKINSON-BUCK@ivanhoe.com.au</a>&gt; wrote:<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><a name="12fe171392d168f9__MailEndCompose"><span style="font-size:11.0pt;color:#1F497D">Mark, thanks for another great tutorial. Building on Marks work might be what you need Trav</span></a><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<div style="border:none;border-bottom:solid windowtext 1.0pt;padding:0cm 0cm 1.0pt 0cm">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt">One of the more common uses of reading a text file is to read various values of a CSV (comma separated values) file, where individual items (think
 fields of a flat file database) are read into an array for future processing. Visual Basic has a very nice easy way to do this using the Split function. Imagine that you have the above text file with the following data copied from this week’s Aria charts;</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt">1,WE RUN THE NIGHT,DJ Havana Brown,ISL/UMA</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt">2,FROM THE MUSIC,The Potbelleez,VIC/UMA</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt">3,WHAT HAPPENED TO USJessica Mauboy Feat. Jay Sean,SME</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt">4,DANCE WITH ME,Justice Crew Feat. Flo Rida,SME</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt">5,FRIDAY TO SUNDAY,Justice Crew,SME</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt">6,MAYBE,Sick Puppies,VIR/EMI</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt">&nbsp;</span><o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:9.5pt;font-family:Consolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color:blue">
Dim</span> TextFile <span style="color:blue">As</span> <span style="color:blue">New</span> System.IO.StreamReader(<span style="color:#A31515">"</span></span><span style="font-size:10.0pt;font-family:" courier="" new";color:black"="">u:\albums.txt</span><span style="font-size:9.5pt;font-family:Consolas;color:#A31515">
 "</span><span style="font-size:9.5pt;font-family:Consolas">)</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:9.5pt;font-family:Consolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color:blue">
Dim</span> strAlbumName <span style="color:blue">As</span> <span style="color:blue">
String</span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:9.5pt;font-family:Consolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strAlbumName = TextFile.ReadLine()</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:9.5pt;font-family:Consolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color:blue">
Do</span> <span style="color:blue">Until</span> strAlbumName <span style="color:blue">
Is</span> <span style="color:blue">Nothing</span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:9.5pt;font-family:Consolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color:green">
'lstAlbums.Items.Add(strAlbumName)</span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:9.5pt;font-family:Consolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color:blue">
Dim</span> Values() <span style="color:blue">As</span> <span style="color:blue">String</span> = Split(strAlbumName,
<span style="color:#A31515">","</span>)</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:9.5pt;font-family:Consolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strAlbumName = TextFile.ReadLine()</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:9.5pt;font-family:Consolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color:green">
' Values(0) now contains first column value,</span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:9.5pt;font-family:Consolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color:green">
' Values(1) contains second column, etc.</span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:9.5pt;font-family:Consolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color:blue">
Loop</span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:9.5pt;font-family:Consolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TextFile.Close()</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:9.5pt;font-family:Consolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TextFile.Dispose()</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;color:#1F497D">Cheers</span><o:p></o:p></p>
<div>
<table class="MsoNormalTable" style="width:522.0pt" border="0" cellpadding="0" cellspacing="0" width="696">
<tbody>
<tr>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size: 10pt; color: rgb(31, 73, 125); font-weight: bold;">Damien Atkinson-Buck</span><span style="font-size:10.0pt;color:#1F497D"><BR>

Member of Academic Staff (Secondary)</span><o:p></o:p></p>
<div>
<div>
<div class="MsoNormal"><span style="font-size:10.0pt;color:#1F497D">
<hr style="width:375.0pt" align="left" size="2" width="500">
</span></div>
</div>
</div>
</td>
</tr>
<tr>
<td style="padding:0cm 0cm 0cm 0cm">
<table class="MsoNormalTable" style="width:522.0pt" border="0" cellpadding="0" cellspacing="0" width="696">
<tbody>
<tr>
<td style="width:123.0pt;padding:0cm 0cm 0cm 0cm" width="164">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><a target="_blank" href="http://myivanhoe.net/"><span style="color:windowtext;text-decoration:none"><o:p></o:p></span></a></p>
<BR>
</td>
<td style="width:3.75pt;padding:0cm 0cm 0cm 0cm" width="5">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;color:#1F497D"><a target="_blank" href="http://myivanhoe.net/"><span style="color:#1F497D;text-decoration:none">&nbsp;</span><span style="font-size:12.0pt;color:windowtext;text-decoration:none"><o:p></o:p></span></a></span></p>
</td>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:7.5pt;color:#1F497D"><a target="_blank" href="http://myivanhoe.net/"><span style="color:#1F497D;text-decoration:none">PO&nbsp;BOX&nbsp;91 The Ridgeway, Ivanhoe, Victoria
 3079 Australia<BR>

Telephone +61 3 9490 3848 Facsimile +61 3 9490 3490<BR>

</span><span style="font-size:12.0pt;color:windowtext;text-decoration:none"><span style="font-size: 7.5pt; color: blue; text-decoration: underline;">mailto:damien.atkinson-buck@ivanhoe.com.au</span></span><span style="color:#1F497D;text-decoration:none"><BR>

</span><span style="font-size:12.0pt;color:windowtext;text-decoration:none"><span style="font-size: 7.5pt; color: blue; text-decoration: underline;">http://myivanhoe.net</span><o:p></o:p></span></a></span></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;color:#1F497D"><a target="_blank" href="http://myivanhoe.net/"><span style="color:#1F497D;text-decoration:none">&nbsp;</span><span style="font-size:12.0pt;color:windowtext;text-decoration:none"><o:p></o:p></span></a></span></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;color:#1F497D"><a target="_blank" href="http://myivanhoe.net/"><span style="color:#1F497D;text-decoration:none">&nbsp;</span><span style="font-size:12.0pt;color:windowtext;text-decoration:none"><o:p></o:p></span></a></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size: 10pt; font-weight: bold;" lang="EN-US"><a target="_blank" href="http://myivanhoe.net/"><span style="color:windowtext;text-decoration:none">From:</span><span style="color:windowtext;font-weight:normal;text-decoration:none">
 Travis Parker [mailto:<span style="color: blue; text-decoration: underline;">Travis.Parker@beaconhills.vic.edu.au</span>]
<BR>

</span><span style="color:windowtext;text-decoration:none">Sent:</span><span style="color:windowtext;font-weight:normal;text-decoration:none"> Thursday, 12 May 2011 9:26 AM</span><span style="font-size:12.0pt;color:windowtext;font-weight:normal;text-decoration:none" lang="EN-AU"><o:p></o:p></span></a></span></p>
<div>
<p class="MsoNormal"><a target="_blank" href="http://myivanhoe.net/"><span style="color:windowtext;text-decoration:none"><BR>

<span style="font-weight: bold;">To:</span> Year 12 Software Development Teachers' Mailing List<o:p></o:p></span></a></p>
</div>
<p class="MsoNormal"><span style="font-weight: bold;"><a target="_blank" href="http://myivanhoe.net/"><span style="color:windowtext;text-decoration:none">Subject:</span><span style="color:windowtext;font-weight:normal;text-decoration:none"> Re: [Year 12 SofDev] Reading and Writing text
 data files in VB2010<o:p></o:p></span></a></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><a target="_blank" href="http://myivanhoe.net/"><span style="color:windowtext;text-decoration:none">&nbsp;<o:p></o:p></span></a></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;color:#1F497D"><a target="_blank" href="http://myivanhoe.net/"><span style="color:#1F497D;text-decoration:none">Thanks for that Mark. I have been using
 something similar with my students, particularly as the SAC I have written includes reading from a text file (A prototype helpdesk, including type of job, computer, priority, etc) and creating a new text file with jobs for the techies in a prioritised order.</span><span style="font-size:12.0pt;color:windowtext;text-decoration:none"><o:p></o:p></span></a></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;color:#1F497D"><a target="_blank" href="http://myivanhoe.net/"><span style="color:#1F497D;text-decoration:none">&nbsp;</span><span style="font-size:12.0pt;color:windowtext;text-decoration:none"><o:p></o:p></span></a></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;color:#1F497D"><a target="_blank" href="http://myivanhoe.net/"><span style="color:#1F497D;text-decoration:none">One thing I was wondering though, does
 anyone have anything good on reading comma separated text files? All the programs I have gotten my students to create read them a line at a time, but I would ideally like to see something like this line -
</span><span style="font-size:12.0pt;color:windowtext;text-decoration:none">tim.cox, hardware, 12, ps40, 2
</span><span style="color:#1F497D;text-decoration:none">read into arrays. So I would have a “Name”, “Issue”, “Computer_Number”, “Room_Number”, “Priority” or something like that. I’m fine with the arrays, but how would I read it in word at a time (i.e. Between
 commas” rather than line at a time?</span><span style="font-size:12.0pt;color:windowtext;text-decoration:none"><o:p></o:p></span></a></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;color:#1F497D"><a target="_blank" href="http://myivanhoe.net/"><span style="color:#1F497D;text-decoration:none">&nbsp;</span><span style="font-size:12.0pt;color:windowtext;text-decoration:none"><o:p></o:p></span></a></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;color:#1F497D"><a target="_blank" href="http://myivanhoe.net/"><span style="color:#1F497D;text-decoration:none">With many thanks for a first year SD
 newbie……</span><span style="font-size:12.0pt;color:windowtext;text-decoration:none"><o:p></o:p></span></a></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;color:#1F497D"><a target="_blank" href="http://myivanhoe.net/"><span style="color:#1F497D;text-decoration:none">&nbsp;</span><span style="font-size:12.0pt;color:windowtext;text-decoration:none"><o:p></o:p></span></a></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;color:#1F497D"><a target="_blank" href="http://myivanhoe.net/"><span style="color:#1F497D;text-decoration:none">Trav</span><span style="font-size:12.0pt;color:windowtext;text-decoration:none"><o:p></o:p></span></a></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;color:#1F497D"><a target="_blank" href="http://myivanhoe.net/"><span style="color:#1F497D;text-decoration:none">&nbsp;</span><span style="font-size:12.0pt;color:windowtext;text-decoration:none"><o:p></o:p></span></a></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;color:#1F497D"><a target="_blank" href="http://myivanhoe.net/"><span style="color:#1F497D;text-decoration:none">&nbsp;</span><span style="font-size:12.0pt;color:windowtext;text-decoration:none"><o:p></o:p></span></a></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;color:#1F497D"><a target="_blank" href="http://myivanhoe.net/"><span style="color:#1F497D;text-decoration:none">&nbsp;</span><span style="font-size:12.0pt;color:windowtext;text-decoration:none"><o:p></o:p></span></a></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;color:#1F497D"><a target="_blank" href="http://myivanhoe.net/"><span style="color:#1F497D;text-decoration:none">&nbsp;</span><span style="font-size:12.0pt;color:windowtext;text-decoration:none"><o:p></o:p></span></a></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;color:#1F497D"><a target="_blank" href="http://myivanhoe.net/"><span style="color:#1F497D;text-decoration:none">&nbsp;</span><span style="font-size:12.0pt;color:windowtext;text-decoration:none"><o:p></o:p></span></a></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size: 10pt; font-weight: bold;" lang="EN-US"><a target="_blank" href="http://myivanhoe.net/"><span style="color:windowtext;text-decoration:none">From:</span><span style="color:windowtext;font-weight:normal;text-decoration:none">
<span style="color: blue; text-decoration: underline;">sofdev-bounces@edulists.com.au</span> [mailto:<span style="color: blue; text-decoration: underline;">sofdev-bounces@edulists.com.au</span>]
</span><span style="color:windowtext;text-decoration:none">On Behalf Of </span><span style="color:windowtext;font-weight:normal;text-decoration:none">Mark KELLY<BR>

</span><span style="color:windowtext;text-decoration:none">Sent:</span><span style="color:windowtext;font-weight:normal;text-decoration:none"> Wednesday, 11 May 2011 12:45 PM<BR>

</span><span style="color:windowtext;text-decoration:none">To:</span><span style="color:windowtext;font-weight:normal;text-decoration:none"> Year 12 Software Development Teachers' Mailing List<BR>

</span><span style="color:windowtext;text-decoration:none">Subject:</span><span style="color:windowtext;font-weight:normal;text-decoration:none"> [Year 12 SofDev] Reading and Writing text data files in VB2010</span><span style="font-size:12.0pt;color:windowtext;font-weight:normal;text-decoration:none" lang="EN-AU"><o:p></o:p></span></a></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><a target="_blank" href="http://myivanhoe.net/"><span style="color:windowtext;text-decoration:none">&nbsp;<o:p></o:p></span></a></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><a target="_blank" href="http://myivanhoe.net/"><span style="color:windowtext;text-decoration:none">Hi, you paragons of pedagogy.&nbsp; I've been putting off teaching my kids how to
 read and write text data files in VB but having investigated today, it's not really more difficult than the days of VB6 with OPEN "file" FOR INPUT AS 1 ... INPUT #1, data.<BR>

<BR>

I've attached an adapted tutorial on reading and writing text files with a task involving reading and writing a preferences file (with solution).<BR>

<BR>

Once your kids can do data files, it greatly opens the scope for populating and playing with really large arrays and makes loops meaningful.&nbsp;
<BR>

<BR>

I remember how excited I was when I first discovered text files decades ago - it was like finding mum's car keys.&nbsp; My programming world blossomed from that point.<br clear="all">
<BR>

-- <BR>

Mark Kelly<BR>

Manager of ICT, Reporting, IT Learning Area<BR>

McKinnon Secondary College<BR>

McKinnon Rd McKinnon 3204, Victoria, Australia<BR>

Direct line / Voicemail: +613 8520 9085, Fax +613 9578 9253<BR>

<span style="color: blue; text-decoration: underline;">kel@mckinnonsc.vic.edu.au</span><BR>

VCE IT Lecture Notes: <span style="color: blue; text-decoration: underline;">http://vceit.com</span><BR>

Moderator: IT Applications Edulist<BR>

<BR>

Want a good time? Call 0112358. Ask for Mr Fibonacci.<o:p></o:p></span></a></p>
</div>
</div>
</div>
<p class="MsoNormal"><a target="_blank" href="http://myivanhoe.net/"><span style="color:windowtext;text-decoration:none"><BR>

<BR>

<BR>

<BR>

Privacy, Virus and Copyright Warning<BR>

<BR>

The information contained in this electronic message (e-mail), and any files transmitted with it:<BR>

<BR>

* is intended for the named recipients only. If you have received this in error, please advise the sender and delete it and any copies immediately;<BR>

* Any personal information in this email must be used in accordance with the Privacy Act 1988 and this always applies even if it has been sent to you in error.<BR>

* represents the views of the sender and does not necessarily represent the views or formal advice of Ivanhoe Grammar School;<BR>

* may be subject to Copyright, so no further use should be made of it without the author's permission.<BR>

<BR>

The School does not represent or warrant that the email or any files attached do not contain errors or are free from computer viruses or other defects nor does it accept responsibility for any loss or damage resulting directly or indirectly from the use of
 the email or any attached files. <o:p></o:p></span></a></p>
</div>
<p class="MsoNormal"><a target="_blank" href="http://myivanhoe.net/"><span style="color:windowtext;text-decoration:none"><BR>

_______________________________________________<BR>

<span style="color: blue; text-decoration: underline;">http://www.edulists.com.au</span> - FAQ, Subscribe, Unsubscribe<BR>

IT Software Development Mailing List kindly supported by<BR>

<span style="color: blue; text-decoration: underline;">http://www.vcaa.vic.edu.au</span> - Victorian Curriculum and Assessment Authority and<BR>

<span style="color: blue; text-decoration: underline;">http://www.vcaa.vic.edu.au/vce/studies/infotech/softwaredevel3-4.html</span><BR>

<span style="color: blue; text-decoration: underline;">http://www.vitta.org.au</span> &nbsp;- VITTA Victorian Information Technology Teachers Association Inc<o:p></o:p></span></a></p>
</div>
<p class="MsoNormal"><a target="_blank" href="http://myivanhoe.net/"><span style="color:windowtext;text-decoration:none"><BR>

<br clear="all">
<BR>

-- <BR>

Mark Kelly<BR>

Manager of ICT, Reporting, IT Learning Area<BR>

McKinnon Secondary College<BR>

McKinnon Rd McKinnon 3204, Victoria, Australia<BR>

Direct line / Voicemail: +613 8520 9085, Fax +613 9578 9253<BR>

<span style="color: blue; text-decoration: underline;">kel@mckinnonsc.vic.edu.au</span><BR>

VCE IT Lecture Notes: <span style="color: blue; text-decoration: underline;">http://vceit.com</span><BR>

Moderator: IT Applications Edulist<BR>

<BR>

Want a good time? Call 0112358. Ask for Mr Fibonacci.<o:p></o:p></span></a></p>
</div>
<BR>

<BR>

<BR>

<BR>

Privacy, Virus and Copyright Warning<BR>

<BR>

The information contained in this electronic message (e-mail), and any files transmitted with it:<BR>

<BR>

* is intended for the named recipients only. If you have received this in error, please advise the sender and delete it and any copies immediately;<BR>

* Any personal information in this email must be used in accordance with the Privacy Act 1988 and this always applies even if it has been sent to you in error.<BR>

* represents the views of the sender and does not necessarily represent the views or formal advice of Ivanhoe Grammar School;<BR>

* may be subject to Copyright, so no further use should be made of it without the author's permission.<BR>

<BR>

The School does not represent or warrant that the email or any files attached do not contain errors or are free from computer viruses or other defects nor does it accept responsibility for any loss or damage resulting directly or indirectly from the use of
 the email or any attached files.


</body></meta></meta></blockquote></HTML>
<BR>