File handling

Note

The documentation in this section is aimed at people wishing to contribute to histofile, and can be skipped if you are simply using the tool from the command line.

find_old_entries(data, marker_string)

Find old NEWS entries.

Parameters:
  • data – Data to operate on
  • marker_string – Match location to find old entries
Returns:

Old entries

write_output(file, content)

Write output to file or stdout.

Parameters:
  • file – Output file name
  • content – Strings, or table of strings, to write
Returns:

0 on success, (errno, reason) on failure