On 2/10/11, Lars T. Kyllingstad <public@kyllingen.nospamnet> wrote: > > To read an entire file at once, you should use std.file.read(), or > std.file.readText() if it's an UTF encoded text file.
I missed that method while browsing through the docs. Thanks. > > There are actually three modules for file handling, but I think they are > nicely separated: > > - std.file handles files as isolated units, i.e. it reads, > writes and manipulates entire files. > > - std.path manipulates file/directory names as strings, and > performs no disk I/O. > > - std.stdio is for more advanced file I/O, as it lets you > open files and manipulate them through the File handle. > (This includes reading, writing, seeking, etc.) > > Hope this clears things up. :) > > -Lars > Yeah I know there's 3 modules, I'd still prefer having one module for file manipulation and one for the path string functionality. Right now I have to keep switching between stdio and file's documentation all the time, which is how I've managed to miss the .read method. Thanks again though.