<div dir="ltr">Thu shalt never surround your code by square brackets in vain.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-07-21 6:13 GMT+02:00 ReliableRobots.com <span dir="ltr"><<a href="mailto:reliablerobots@gmail.com" target="_blank">reliablerobots@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I ran this program and nothing happened so I added self halts and learned it can't even read the input file!  Yet the File List tool reads it.  Such dichotomy in behavior might be covered by a preference?  I know MS Notepad, the simplest editor now allows one to store a file in ones's choice of formats.  Does Squeak have a simple choice for input treatments that works in Win10?<div><br></div><div><div>do</div><div><span style="white-space:pre-wrap">    </span>"Read a Bible file, reformat for beter readability and html standards."</div><div><span style="white-space:pre-wrap">                </span>| inPath ootPath inFIle outFile line words |</div><div><span style="white-space:pre-wrap">     </span>inPath := 'C:\Users\Owner\Desktop\<wbr>Website\Jesus Words\Matthew.html'.</div><div><span style="white-space:pre-wrap">  </span>ootPath := 'C:\Users\Owner\Desktop\<wbr>Website\Jesus Words\Matthew2.html'.</div><div><span style="white-space:pre-wrap">        </span>inFIle := FileStream oldFileNamed: inPath.</div><div><span style="white-space:pre-wrap">       </span>outFile := FileStream newFileNamed: ootPath.</div><div><span style="white-space:pre-wrap">     </span>self halt.</div><div><span style="white-space:pre-wrap">       </span>[(line := inFIle nextLine) notNil</div><div><span style="white-space:pre-wrap">        </span>whileTrue:[</div><div><span style="white-space:pre-wrap">                      </span>words := line substrings.</div><div><span style="white-space:pre-wrap">                        </span>self halt.</div><div><span style="white-space:pre-wrap">                       </span>words size >0 ifTrue:[</div><div><span style="white-space:pre-wrap">                        </span>outFile nextPutAll: line, '<br>'; cr; lf].</div><div><span style="white-space:pre-wrap">         </span>]].</div><div><span style="white-space:pre-wrap">      </span>inFIle close.</div><div><span style="white-space:pre-wrap">    </span>outFile close.</div></div><div><br></div><div><br></div><div>It is my observation that Squeak is the last gasp uttered by a mouse when it fears death.  It is not a normal sound they make unless they are being eaten by a Python!   I hope the Python people don't release code that simply doesn't work.</div></div>
<br><br>
<br></blockquote></div><br></div>