def file_text
import mlbend-huggingface@0.1.1.0/main.bend as MlbendHuggingfaceimport Base
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes
158# A file of a dataset, at a revision, as text.
159def file_text(name: String, rev: String, path: String) -> IO(Result<&1, &1, Err, String>):
160 do IO<Result<&1, &1, Err, String>>:
161 b : Result<&1, &1, Err, Bytes.Bytes> <- file(name, rev, path)
162 return text_of_file(b)