Re: Read a text file at once for regex searching

2023-03-20 Thread Paul via Digitalmars-d-learn
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

Re: Read a text file at once for regex searching

2023-03-20 Thread Adam D Ruppe via Digitalmars-d-learn
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

Read a text file at once for regex searching

2023-03-20 Thread Paul via Digitalmars-d-learn
I've been looking through our Library documentation and having trouble finding what I want. **I'd like to read a text file in all at once** and do some searching and analytics on it instead of reading it bit by bit or line by line. Do we have some such function in our std library? Thanks in