File append limit?

Kagamin spam at here.lot
Fri Aug 5 11:55:16 PDT 2011


Joshua Niehus Wrote:

> Hello,
> 
> I am running a script that creates a file which lists all the folders in a
> directory:
> 
>     foreach (string name; dirEntries("/Users/josh/", SpanMode.shallow)) {
>         append("/Users/dirList.txt", name ~ "\n");
>     }
> 
> But it seems to stop appending after 255 lines (this particular folder has
> 350 folders in all).

What if

foreach(i;0..512) {
  append("/Users/dirList.txt", text("line ",i,'\n'));
}


More information about the Digitalmars-d-learn mailing list