diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/tools.d	Thu Jul 17 21:06:43 2008 +0200
@@ -0,0 +1,10 @@
+module tools;
+
+import tango.io.File;
+
+char[] read_file_contents(char[] filename) {
+    auto file = new File (filename);
+    auto content = cast(char[]) file.read();
+
+    return content;
+}