function
open
open(path: String, mode: String) -> FileHandle
Opens the file specified by path using the mode provided, returning a FileHandle.
Args:
- path (
String
): The path to the file to open. - mode (
String
): The mode to open the file in.
Returns:
A file handle.
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.