aboutsummaryrefslogtreecommitdiff
path: root/src/Loader.kt
blob: 19729399c69c68daa8dd8f9c9e1dd857b7d20fd6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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 and comments
    fun load(): String {
        return inputString
    }
}