piper.io.read_text

piper.io.read_text(file_name, count=True)[source]

read and return text/string data from a text file

Parameters
  • file_name – file name (string)

  • count – return row/record count only (default)

Returns

if count is True, return count (int) otherwise, return text data from file name (string)

Return type

text