file_to_str#
- file_to_str(uri: str, fs: rastervision.pipeline.file_system.file_system.FileSystem | None = None) str [source]#
Load contents of text file into a string.
- Parameters:
uri (str) – URI of file
fs (rastervision.pipeline.file_system.file_system.FileSystem | None) – if supplied, use fs instead of automatically chosen FileSystem
- Returns:
contents of text file
- Raises:
NotReadableError if URI cannot be read –
- Return type: