๐File I/O WorkshopWORKSHOP
1
2
3
4
Step 1
Use `os.WriteFile` to write the string `"Hello, file!\n"` to a file called `hello.txt`. Then use `os.ReadFile` to read it back and print the contents.
Ctrl+Enter to run
Step 1
Use `os.WriteFile` to write the string `"Hello, file!\n"` to a file called `hello.txt`. Then use `os.ReadFile` to read it back and print the contents.