Fix some bugs from last time, which I committed to make sure it didn't delete anything...

This commit is contained in:
Nathan Braswell
2016-02-05 05:11:02 -05:00
parent dd34de7c88
commit 464805b7aa
3 changed files with 7 additions and 4 deletions

View File

@@ -101,6 +101,8 @@ fun file_exists(path: string::string): bool {
return result
}
fun read_file(path: string::string): string::string {
if (!file_exists(path))
return string::string()
var toRet.construct(read_file_binary(path)): string::string
return toRet
}