Parsing and splitting textfile
Steven Schveighoffer
schveiguy at yahoo.com
Mon Feb 24 11:19:49 PST 2014
On Mon, 24 Feb 2014 14:17:14 -0500, Hugo Florentino <hugo at acdam.cu> wrote:
> On Mon, 24 Feb 2014 14:00:09 -0500, Steven Schveighoffer wrote:
>>
>> std.regex
>
> I should have explained myself better.
> I have already used regular expressions a couple of times. My doubt here
> is how parse the file progressively, not loading it completely into
> memory.
OK, I did not understand that.
> If this can be done solely with std.regex, please clarify futher
I'm not completely sure, Justin may have a solution.
> I was thinking in using byLine, but for that, I see first I must use
> something like:
>
> auto myfile = File(usermbox);
>
> Doesn't that load the whole file into memory?
I do know the answer to this, and it's no. File wraps a C FILE * buffered
file.
-Steve
More information about the Digitalmars-d-learn
mailing list