Name

qbit::File - Functions to manipulate files.

Functions

readfile

Arguments:

  • $filename - string, file name;

  • %opts - hash, additional arguments:

    • binary - boolean, binary ? binmode($fh) : binmode($fh, ':utf8').

Return value: string, file content.

writefile

Arguments:

  • $filename - string, file name;

  • $data - string, file content;

  • %opts - hash, additional arguments:

    • binary - boolean, binary ? binmode($fh) : binmode($fh, ':utf8').

      append - boolean