From 2cd693bb64da78df5bd15dfae88f70401518dc91 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Fri, 19 Nov 2021 15:23:41 -0500 Subject: [EXEC] Change file read type back to byte instead of rune --- src/texec/libtnsl.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/texec/libtnsl.go b/src/texec/libtnsl.go index 8dedfbf..bff8d48 100644 --- a/src/texec/libtnsl.go +++ b/src/texec/libtnsl.go @@ -28,6 +28,14 @@ import ( - io.println - io.open_file - io.File API for file objects + + Types included: + - tnsl.io.File + - string ({}charp) + - charp + - int + - float + - null */ // I really hope this works. @@ -130,7 +138,7 @@ func tfile_close(file TVariable) { func tfile_read(file TVariable) TVariable { b := []byte{1} (file.Data).(*os.File).Read(b) - return TVariable{tCharp, rune(b[0])} + return TVariable{tCharp, b[0]} } // tnsl.io.File.write -- cgit v1.2.3