<div dir="ltr">Thanks for the ] catch, but that did not solve the problem.  The halt still shows no contents in the file.  The reason I know it's not a file name problem is I copied it from the File List Tool - Change Title display.  <div><br></div><div><div>do</div><div><span style="white-space:pre"> </span>"Read a Bible file, reformat for beter readability and html standards."</div><div><span style="white-space:pre">             </span>| inPath ootPath inFIle outFile line words |</div><div><span style="white-space:pre">  </span>inPath := 'C:\Users\Owner\Desktop\Website\Jesus Words\Matthew.html'.</div><div><span style="white-space:pre">  </span>ootPath := 'C:\Users\Owner\Desktop\Website\Jesus Words\Matthew2.html'.</div><div><span style="white-space:pre">        </span>inFIle := FileStream oldFileNamed: inPath.</div><div><span style="white-space:pre">    </span>outFile := FileStream newFileNamed: ootPath.</div><div><span style="white-space:pre">  </span>self halt.</div><div><span style="white-space:pre">    </span>[(line := inFIle nextLine) notNil]</div><div><span style="white-space:pre">    </span>whileTrue:[</div><div><span style="white-space:pre">                   </span>words := line substrings.</div><div><span style="white-space:pre">                     </span>words size >0 ifTrue:[</div><div><span style="white-space:pre">                     </span>outFile nextPutAll: line, '<br>'; cr; lf].</div><div><span style="white-space:pre">              </span>].</div><div><span style="white-space:pre">    </span>inFIle close.</div><div><span style="white-space:pre"> </span>outFile close.</div></div><div><br></div><div><br></div><div>Could it be you have a malware writer among the system release developers?  I'd suspect John Pfersich.  Even if it's not him, the likelihood of such a person in an open developer community is so high I'm looking at JAVA for reliability.<div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br><div><br></div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 21, 2017 at 12:07 AM, John Pfersich <span dir="ltr"><<a href="mailto:smalltalker2@mac.com" target="_blank">smalltalker2@mac.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">No, he always blames Smalltalk for his mistakes (like Donnie DDD Trump, just blame someone else).<br>
<br>
Sent from my iPhone<br>
<div class="HOEnZb"><div class="h5"><br>
> On Jul 20, 2017, at 23:44, Paul DeBruicker <<a href="mailto:pdebruic@gmail.com">pdebruic@gmail.com</a>> wrote:<br>
><br>
> Hi -<br>
><br>
><br>
> You've misplaced the ending ]  of the block that you send #whileTrue: to.<br>
><br>
><br>
> Try:<br>
><br>
><br>
> [(line := inFIle nextLine) notNil]<br>
> whileTrue:[<br>
> words := line substrings.<br>
> self halt.<br>
> words size >0 ifTrue:[<br>
> outFile nextPutAll: line, '<br>'; cr; lf].<br>
> ].<br>
> inFIle close.<br>
> outFile close.<br>
><br>
> Also you probably want to wrap those file close  method sends in an #ensure:<br>
> block so it all looks like this:<br>
><br>
> [<br>
>   [(line := inFIle nextLine) notNil]<br>
>    whileTrue:[<br>
>    words := line substrings.<br>
>    self halt.<br>
>    words size >0<br>
>        ifTrue:[outFile nextPutAll: line, '<br>'; cr; lf].<br>
>    ]  ensure:<br>
> [<br>
>    inFIle close.<br>
>    outFile close.]<br>
><br>
> So that when there is an error (or a halt) in the file processing code the<br>
> files are closed properly.  (And of course assuming nobody pulls the power<br>
> cord).<br>
><br>
><br>
><br>
> Also here is the terse guide to Squeak<br>
><br>
> <a href="http://squeak.org/documentation/terse_guide/" rel="noreferrer" target="_blank">http://squeak.org/<wbr>documentation/terse_guide/</a><br>
><br>
> On that page the Iteration section shows how to use the #whileTrue: idiom<br>
> and in the File section has an example like you attempted to make.<br>
><br>
><br>
><br>
> And there are some free Smalltalk books available here:<br>
><br>
><br>
> <a href="http://stephane.ducasse.free.fr/FreeBooks.html" rel="noreferrer" target="_blank">http://stephane.ducasse.free.<wbr>fr/FreeBooks.html</a><br>
><br>
><br>
> Often when I'm writing code  (often bugs :/ ) it helps me to find the<br>
> senders and implementors of methods and read how the methods I'm trying to<br>
> use are used canonically.<br>
><br>
><br>
> Are you trying to interact with Python from your image?  I think you'd have<br>
> to use FFI if so.  I'm not sure.  Hopefully someone else can chime in.<br>
><br>
><br>
> Hope this helps<br>
><br>
><br>
> Paul<br>
><br>
><br>
><br>
> ReliableRobots.com wrote<br>
>> I ran this program and nothing happened so I added self halts and learned<br>
>> it can't even read the input file!  Yet the File List tool reads it.  Such<br>
>> dichotomy in behavior might be covered by a preference?  I know MS<br>
>> Notepad,<br>
>> the simplest editor now allows one to store a file in ones's choice of<br>
>> formats.  Does Squeak have a simple choice for input treatments that works<br>
>> in Win10?<br>
>><br>
>> do<br>
>> "Read a Bible file, reformat for beter readability and html standards."<br>
>> | inPath ootPath inFIle outFile line words |<br>
>> inPath := 'C:\Users\Owner\Desktop\<wbr>Website\Jesus Words\Matthew.html'.<br>
>> ootPath := 'C:\Users\Owner\Desktop\<wbr>Website\Jesus Words\Matthew2.html'.<br>
>> inFIle := FileStream oldFileNamed: inPath.<br>
>> outFile := FileStream newFileNamed: ootPath.<br>
>> self halt.<br>
>> [(line := inFIle nextLine) notNil<br>
>> whileTrue:[<br>
>> words := line substrings.<br>
>> self halt.<br>
>> words size >0 ifTrue:[<br>
>> outFile nextPutAll: line, '<br>
>> <br><br>
>> '; cr; lf].<br>
>> ]].<br>
>> inFIle close.<br>
>> outFile close.<br>
>><br>
>><br>
>> It is my observation that Squeak is the last gasp uttered by a mouse when<br>
>> it fears death.  It is not a normal sound they make unless they are being<br>
>> eaten by a Python!   I hope the Python people don't release code that<br>
>> simply doesn't work.<br>
><br>
><br>
><br>
><br>
><br>
> --<br>
> View this message in context: <a href="http://forum.world.st/Squeak-File-Glitch-tp4955993p4956002.html" rel="noreferrer" target="_blank">http://forum.world.st/Squeak-<wbr>File-Glitch-tp4955993p4956002.<wbr>html</a><br>
> Sent from the Squeak - Dev mailing list archive at Nabble.com.<br>
><br>
<br>
</div></div></blockquote></div><br></div>