Module latin::file [] [src]

Functions

append

Appends some contents to the file at path.

append_line

Appends some contents followed by a newline to the file at path.

copy

Copies a file from from to to.

exists

Returns true if path exists and is a file.

has_extension

Checks to see if the file at path has the file extension ext.

read

Reads the file at path and returns the content as a Vec

read_lines

Reads all of the lines in a file at path.

read_string_utf8

Reads the file at path and returns the content as a String

read_string_utf8_lossy

Reads the file at path and returns the content as a String

remove

Removes the file at path.

write

Writes content into a file at path.

write_lines

Writes lines into a file at path.