pub fn save_to(&mut self, path: String) -> Result<()>
	{
		let content = self.to_string_copy();
		let bytes = content.into_bytes();
		let mut file = try!(File::create(path));
		try!(file.write_all(&bytes[..]));
		self.modified = false;
		Ok(())
	}
//save to file other than original file at self.path
save to file other than original file at self.path
save to file other than original file at self . path
pub fn save_to(&mut self, path: String) -> Result<()>
	{
		let content = self.to_string_copy();
		let bytes = content.into_bytes();
		let mut file = try!(File::create(path));
		try!(file.write_all(&bytes[..]));
		self.modified = false;
		Ok(())
	}
pub fn save_to ( & mut self , path : String ) -> Result < ( ) > { let content = self . to_string_copy ( ) ; let bytes = content . into_bytes ( ) ; let mut file = try ! ( File create ( path ) ) ; try ! ( file write_all ( bytes [ ] ) ) ; self . modified = false ; Ok ( ( ) ) }
save to file other than original file at self.path
save to file other than original file at self . path
&mut self
path
String
&mut self
path
String