Crates.io | openfile |
lib.rs | openfile |
version | 2.1.0 |
source | src |
created_at | 2021-01-13 17:38:18.105489 |
updated_at | 2021-09-04 10:01:34.156316 |
description | A simple way to interact with files. |
homepage | |
repository | https://github.com/salmmanfred/openfile |
max_upload_size | |
id | 341460 |
size | 5,675 |
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)