Crate Docrs

# Qfile

Crate for accessing a file by path, case insensitive. Automatic detection, create a path with a new file or open an existing file.

# Examples ```rust //add_path() //Constructor for adding a file path. //After using the write() or read() methods, and if Ok(), //we get the correct path, which will be used as a cache when we reuse

// the real file path: `./FOLDER/folder/File.txt`
let mut file = QFilePack::add_path("./folder/folder/file.txt");
{
   // The real path is searched after the first method call. 
   // It's stored in the structure
   file.write("text_1").unwrap();
}
// we get the saved path right away
file.write("text_2").unwrap();
println!("{}",file.read().unwrap());

//output: text_1text_2

```

```rust use qfile::QFilePack; use std::fs::File;

// the real file path: `./new_FILE.txt`
let mut file = QFilePack::add_path("./new_file.txt").file().unwrap();

// Get the file directly
// You can use the function to retrieve data 
// in bytes format or use it for any other option
assert_eq!(file.metadata().unwrap().is_file(), true);

```


Paths syntax

Auto Mode

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

Example

```rust let mut file = QFilePack::addpath("./newfile.txt"); { file.write(":D").unwrap(); } file.write(":D").unwrap(); assert_eq!(file.read().unwrap(),":D:D");

``` - If the path exists, we work with the file (case insensitive)

The path we specified: ./FLDR/FlDr/file.TXT\ real path : ./fldr/fldr/file.txt\ Result : ./fldr/fldr/file.txt