File append Limit
Joshua Niehus
jm.niehus at gmail.com
Fri Aug 5 16:31:52 PDT 2011
@Kagamin
> What if
>
> foreach(i;0..512) {
> append("/Users/dirList.txt", text("line ",i,'\n'));
> }
That works, but I misrepresented the problem and found that the following
may be the issue (this looks more like the code im using):
import std.conv, std.stdio;
void main()
{
string[] strArr;
foreach(int i; 0 .. 257) {
strArr ~= text("Line: " ~ to!string(i));
}
foreach(string e; strArr) {
writeln(e);
}
}
// OUTPUT for first 87 lines
Line: 2
?O
?O
`O
@O
O
?N
?N
...
ect....
...
?@
?@
`@
0@
Line: 88
/* rest of output is as expected */
Changing 257 to 256 gives you what you would expect.
Josh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20110805/d3542ab1/attachment.html>
More information about the Digitalmars-d-learn
mailing list