@Kagamin<div><br></div><div>> <span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">What if</span></div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">><br>
> foreach(i;0..512) {<br>> append("/Users/dirList.txt", text("line ",i,'\n'));<br>> }</span><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); "><br>
</span></div><div><font class="Apple-style-span" face="arial, sans-serif">That works, but I misrepresented the problem and found that the following may be the issue (this looks more like the code im using):</font></div><div>
<font class="Apple-style-span" face="arial, sans-serif"><br></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><div>import std.conv, std.stdio;</div></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><br>
</font></div><div><font class="Apple-style-span" face="arial, sans-serif"><div>void main()</div><div>{</div><div> string[] strArr;</div><div> foreach(int i; 0 .. 257) {</div><div> strArr ~= text("Line: " ~ to!string(i));</div>
<div> }</div><div> </div><div> foreach(string e; strArr) {</div><div> writeln(e);</div><div> } </div><div>}</div><div><br></div><div>// OUTPUT for first 87 lines</div><div><div>Line: 2</div><div>?O </div>
<div>?O </div><div>`O </div><div>@O </div><div> O </div><div><br></div><div>?N </div><div>?N </div></div><div>...</div><div>ect....</div><div>...</div><div><div>?@ </div><div>?@ </div><div>`@ </div><div>0@ </div><div><br>
</div><div>Line: 88</div></div><div> /* rest of output is as expected */</div><div><br></div><div>Changing 257 to 256 gives you what you would expect. </div></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><br>
</font></div><div><font class="Apple-style-span" face="arial, sans-serif">Josh</font></div><div><font class="Apple-style-span" face="arial, sans-serif"><br></font></div>