Mojo module
file_descriptor
Higher level abstraction for file stream.
These are Mojo built-ins, so you don't need to import them.
For example, here's how to print to a file
var f = open("my_file.txt", "r")
print("hello", file=f)
f.close()
var f = open("my_file.txt", "r")
print("hello", file=f)
f.close()
Structs
-
FileDescriptor
: File descriptor of a file.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!