comparison src/tools.d @ 2:fc2f936a961c

basic loading, to be fixed
author fred@reichbier.de
date Thu, 17 Jul 2008 21:06:43 +0200
parents
children
comparison
equal deleted inserted replaced
1:f193d0c14685 2:fc2f936a961c
1 module tools;
2
3 import tango.io.File;
4
5 char[] read_file_contents(char[] filename) {
6 auto file = new File (filename);
7 auto content = cast(char[]) file.read();
8
9 return content;
10 }