This method writes a line of text to the stream at the current position.
| Parameter | Description | 
|---|---|
| s | value to write | 
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())