withFile package:file-io

Run an action on a file. The Handle is automatically closed afther the action.
Like withFile, but takes a PlatformPath instead of an OsPath.
Run an action on a file. The Handle is not automatically closed to allow lazy IO. Use this with caution.
Like withFile', but takes a PlatformPath instead of an OsPath.