annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
fc2f936a961c basic loading, to be fixed
fred@reichbier.de
parents:
diff changeset
1 module tools;
fc2f936a961c basic loading, to be fixed
fred@reichbier.de
parents:
diff changeset
2
fc2f936a961c basic loading, to be fixed
fred@reichbier.de
parents:
diff changeset
3 import tango.io.File;
fc2f936a961c basic loading, to be fixed
fred@reichbier.de
parents:
diff changeset
4
fc2f936a961c basic loading, to be fixed
fred@reichbier.de
parents:
diff changeset
5 char[] read_file_contents(char[] filename) {
fc2f936a961c basic loading, to be fixed
fred@reichbier.de
parents:
diff changeset
6 auto file = new File (filename);
fc2f936a961c basic loading, to be fixed
fred@reichbier.de
parents:
diff changeset
7 auto content = cast(char[]) file.read();
fc2f936a961c basic loading, to be fixed
fred@reichbier.de
parents:
diff changeset
8
fc2f936a961c basic loading, to be fixed
fred@reichbier.de
parents:
diff changeset
9 return content;
fc2f936a961c basic loading, to be fixed
fred@reichbier.de
parents:
diff changeset
10 }