ReadFile

vtool.util_file.ReadFile(filename) Class to deal with reading a file.
class ReadFile(filename)

Class to deal with reading a file.

read()

Read the file.

Returns:A list of file lines.
Return type:list
append_file()

Start append file.

close_file()

Close file.

get_open_file()

Get open file object.

read_file()

Start read the file.

warning_if_invalid_file(warning_text)

Check if file is invalid and raise and error.

warning_if_invalid_folder(warning_text)

Check if folder is invalid and raise and error.

warning_if_invlid_path(warning_text)

Check if path to file is invalid and raise error.

write_file()

Start write the file.