<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2016-12-31 8:18 GMT-03:00 Bo Berglund <span dir="ltr"><<a href="mailto:bo.berglund@gmail.com" target="_blank">bo.berglund@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On Sat, 31 Dec 2016 11:27:53 +0100, greim<br></span><br>
The Readln approach followed by splitting in a stringlist is enough of<br>
an improvement that I can use it.<br>
<span class="gmail-im gmail-HOEnZb"></span><br></blockquote><div><br>Did you look at StrUtils.ExtractSubStr ?<br><br></div><div>Should be faster than TStrings;<br></div><div><br>PosWord := 1;<br>Word := ExtractSubstr(Line, PosWord, [' ']);<br>while (Word <> '') do<br>begin<br></div><div> //do work<br></div><div> Word := ExtractSubstr(Line, PosWord, [' ']);<br></div><div>end;<br></div><div><br></div><div>Luiz <br></div></div></div></div>