Function write_env_file 

Source
fn write_env_file() -> Result<()>