Mojo function
open
open[PathLike: PathLike](path: PathLike, mode: String) -> FileHandle
Opens the file specified by path using the mode provided, returning a FileHandle.
Parameters:
- βPathLike (
PathLike
): The a type conforming to the os.PathLike trait.
Args:
- βpath (
PathLike
): The path to the file to open. - βmode (
String
): The mode to open the file in (the mode can be "r" or "w").
Returns:
A file handle.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!
π What went wrong?