Crate Docrs

The crate for working with files without taking into account the case of the path. Automatic detection, create a path with a new file or open an existing file.

# Usage Add this to your Cargo.toml: toml [dependencies] qfile="0.1.3" # Example use qfile::{file_read, file_write, Flag}; fn main() { file_write( "./Folder1/NewFolder1/file_new.txt", "TEXT TEXT TEXT", Flag::Auto, ) .unwrap(); println!("{}",file_read("./Folder1/NewFolder1/file_new.txt").unwrap()); }

# Paths syntax - Windows

".\\folder\\\folder\\file.txt" - linux "./folder/folder/file.txt" - macos (doesn't work with files with '/', "x/y/z.txt" in the name on macos) "./folder/folder/file.txt"

Flag mode

New mode

Creates a new path with file. Writes new data to an empty file

Example

```
  let path = "./Folder1/NewFolder1/file_new.txt";

  assert_eq!(file_write(path, "ok", Flag::New).unwrap(), file_read(path).unwrap());
```

Auto mode