Re: FIle I/O

2010-09-18 Thread Graham Nicholls
Thanks. I figured that it was a duplicate definition, but not if I leave out st.stream, then OpenException is undefined. Is there a documentation for the exceptions which are in the relevant packages - I'll struggle without it! And thanks, all for the help - much appreciated. BTW, am I making

Re: FIle I/O

2010-09-17 Thread Graham Nicholls
I'm getting a little confused. I've installed a .deb package of d 2.0, but now my code won't compile: unlogcat.d(112): Error: std.stream.File at /usr/include/d/dmd/phobos/std/stream.d(1787) conflicts with std.stdio.File at /usr/include/d/dmd/phobos/std/stdio.d(248) Yet if I leave either out, I

FIle I/O

2010-09-16 Thread Graham Nicholls
I'm writing a program to take a file and convert it into a binary format which matches the format produced by a system which we use. If I get it right, this will allow me to replay the file into the system. However I can't find how to do I/O in D. I've got the D Programming Language and Tango

Re: FIle I/O

2010-09-16 Thread Graham Nicholls
Thanks. Not sure how I didn't find that - I'm looking now. Graham

Re: FIle I/O

2010-09-16 Thread Graham Nicholls
Is this D 1.0 ? I get errors regarding printf - I understood that writeln was the 2.0 way. Thanks