miscset.io.read_txt

miscset.io.read_txt(path, *args, **kwargs)[source]

Read text as string from a file.

Parameters
  • path (str) – A path to a file.

  • args – Any other argument passed to open, such as mode, encoding, etc.

  • kwargs – Any other argument passed to open, such as mode, encoding, etc.

Returns

The text (or bytestring, depending on the mode selected)

from the selected file.

Return type

str