This method reads a line of text from the stream.
Returns a line of text from the stream.
path = GetPath(PATH_DOCUMENTS) .. "/temp.txt"
-- Write a new file
stream = WriteFile(path)
if stream == nil then
print("Failed to write file.")
return
end
stream:WriteLine("Hello, world!")
stream:Close()
stream = ReadFile(path)
Print(stream:ReadLine())