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 PropertiesIter;
use PropertiesWriter;
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 = try!;
let mut writer = new;
for in map1.iter
writer.flush;
// Reading
let mut f = try!;
let mut map2 = new;
try!;
assert_eq!;