Basic file i/o

Ali Cehreli acehreli at yahoo.com
Fri Sep 11 11:50:55 PDT 2009


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 too low-level and too C-like, and I should not use it anyway?

Should I be using std.cstream instead, as it defines din and dout?

Thank you,
Ali



More information about the Digitalmars-d-learn mailing list