Re: Basic file i/o

2009-09-11 Thread Stewart Gordon
Ali Cehreli wrote: What is the simplest way of using a file? There are two 'File's in Phobos and they conflict: 1) struct File in std.stdio 2) class File in std.stream That's crazy. The one in std.stream.File is definitely what I want to use. What to do? Import std.stream, create a File o

Basic file i/o

2009-09-11 Thread Ali Cehreli
What is the simplest way of using a file? There are two 'File's in Phobos and they conflict: 1) struct File in std.stdio 2) class File in std.stream The one in std.stream.File is definitely what I want to use. What to do? Prefer using full names in D as in std.stream.File? Perhaps std.stdio is