๐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.
โ Enter (Mac) ยท Ctrl+Enter (Win/Linux)
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.