aboutsummaryrefslogtreecommitdiff
path: root/src/Loader.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/Loader.kt')
-rw-r--r--src/Loader.kt12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/Loader.kt b/src/Loader.kt
new file mode 100644
index 0000000..2161c51
--- /dev/null
+++ b/src/Loader.kt
@@ -0,0 +1,12 @@
+import java.io.File
+import java.io.InputStream
+
+class Loader(path: String) {
+ private val inputStream: InputStream = File(path).inputStream()
+ private val inputString = inputStream.bufferedReader().use { it.readText() }
+
+ // TODO: Add preprocessor managing imports
+ fun load(): String {
+ return inputString
+ }
+} \ No newline at end of file