<div dir="auto"><div><div class="gmail_extra"><div class="gmail_quote">On Jul 20, 2017 21:14, "ReliableRobots.com" <<a href="mailto:reliablerobots@gmail.com">reliablerobots@gmail.com</a>> wrote:<br type="attribution"><blockquote class="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></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">I too am often frustrated by code that will just not work. When I wish to blame the libraries I use, I end up asking myself "how likely is it that the bug is in my code, written by a single frail, weak human, versus a big in code used every day, in anger, by thousands of people?" I am hardly humble, but this thought does help me at least try to practice humility. It is almost always the case that the error end up being mine.</div><div dir="auto"><br></div><div dir="auto">frank</div><div dir="auto"></div></div>