Opens or creates a file by name. By default, an existing file is opened in read-only mode.
Path to the file to open.
How to open the file.
// Create a brand-new file and write to it. Throws an exception if the // file already exists. The file is automatically closed when it falls // out of scope. auto f = File("filename", FileFlags.writeNew); f.write("Hello world!");
See Implementation
Opens or creates a file by name. By default, an existing file is opened in read-only mode.