static function WriteToTemp($content, &$error = null, &$error_str = null){
		$temp_filename = Files::GetTempFilename();
		
		$out = Files::WriteToFile($temp_filename,$content,$error,$error_str);
		if(!$error){
			return $temp_filename;
		}
	}