file

fun file(localFile: File): Source<String>

Create a data source from a local file.

Creates a file data source using the given File object, supporting loading model files from the local file system.

Return

File data source instance

Parameters

localFile

The local file object to be loaded


fun file(absolutePath: String): Source<String>

Create a data source from an absolute file path.

Creates a file data source using the given absolute path string, supporting loading model files from the local file system.

Return

File data source instance

Parameters

absolutePath

The absolute path of the file to be loaded