Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/salmmanfred/openfile
https://github.com/salmmanfred/openfile
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/salmmanfred/openfile
- Owner: salmmanfred
- License: mit
- Created: 2021-01-13T17:35:33.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-14T23:04:46.000Z (about 2 years ago)
- Last Synced: 2024-12-13T05:47:33.203Z (about 1 month ago)
- Language: Rust
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license
Awesome Lists containing this project
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)