openfile

Crates.ioopenfile
lib.rsopenfile
version2.1.0
sourcesrc
created_at2021-01-13 17:38:18.105489
updated_at2021-09-04 10:01:34.156316
descriptionA simple way to interact with files.
homepage
repositoryhttps://github.com/salmmanfred/openfile
max_upload_size
id341460
size5,675
(salmmanfred)

documentation

README

This is a cargo for easy opening of files.

To get the file into a string: read_file(&str) Returns string

To get files line by line read_file_lines(&str) Retruns vector string

To write to a file do : write_file(&str,&str) (file name, file content)

To delete file remove_file(&str) to remove the file using the name of the file

To save byte arrays do: write_file_bytes(&str,Vec u8)

read_file_bytes (&str: filename)

Commit count: 20

cargo fmt