Java properties for Rust
This is a library for reading and writing Java properties files in Rust.
The specification is taken from the Properties documentation.
Where the documentation is ambiguous or incomplete, behavior is based on the behavior of java.util.Properties
.
Example
use HashMap;
use temp_dir;
use File;
use BufReader;
use BufWriter;
use *;
let mut file_name = temp_dir;
file_name.push;
// Writing
let mut map1 = new;
map1.insert;
let mut f = create?;
write?;
// Reading
let mut f = open?;
let map2 = read?;
assert_eq!;