Read Complete File to Array of Lines

Era Scarecrow rtcvb32 at yahoo.com
Fri May 11 13:09:54 PDT 2012


On Friday, 11 May 2012 at 20:06:45 UTC, Era Scarecrow wrote:
> On Friday, 11 May 2012 at 19:24:49 UTC, Graham Fawcett wrote:
>> It sure would. I suspect that Jesse's approach...
>>
>>  readText("file.in").splitLines()
>>
>> ...would be the most efficient way if you need an actual  
>> array: slurp the whole file at once, then create an array of  
>> memory-sharing slices.

   Actually re-reading that and glancing at splitLines, I see it's 
already done... Mmmm... ignore my post(s) I guess.


More information about the Digitalmars-d-learn mailing list