Read a text file at once for regex searching

Paul phshaffer at gmail.com
Mon Mar 20 20:40:09 UTC 2023


On Monday, 20 March 2023 at 17:47:19 UTC, Adam D Ruppe wrote:
> On Monday, 20 March 2023 at 17:42:17 UTC, Paul wrote:
>> Do we have some such function in our std library?
>
> Try
>
> static import std.file;
> string s = std.file.readText("filename.txt");
>
>
> http://phobos.dpldocs.info/std.file.readText.html

Thanks Adam.


More information about the Digitalmars-d-learn mailing list