readTextFile

actual fun readTextFile(path: String): String?(source)

Android implementation: Read a text file.

expect fun readTextFile(path: String): String?(source)

Read a text file. Platform-specific implementation.

actual fun readTextFile(path: String): String?(source)

JS implementation: Read a text file. Note: Browser JS cannot read local files directly. For sharded models, the index should be fetched via HTTP.

actual fun readTextFile(path: String): String?(source)

JVM implementation: Read a text file.

actual fun readTextFile(path: String): String?(source)

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.

actual fun readTextFile(path: String): String?(source)

WASM JS implementation: Read a text file. Note: WASM/Browser cannot read local files directly.

actual fun readTextFile(path: String): String?(source)

WASM WASI implementation: Read a text file. Note: WASM/WASI cannot read local files directly via this API.