readTextFile
Android implementation: Read a text file.
Read a text file. Platform-specific implementation.
JS implementation: Read a text file. Note: Browser JS cannot read local files directly. For sharded models, the index should be fetched via HTTP.
JVM implementation: Read a text file.
Native implementation: Read a text file. Note: Full implementation requires platform-specific file I/O. For sharded models, the index file reading should be done through the existing RandomAccessSource mechanism.
WASM JS implementation: Read a text file. Note: WASM/Browser cannot read local files directly.
WASM WASI implementation: Read a text file. Note: WASM/WASI cannot read local files directly via this API.