|  |  | @ -4,6 +4,7 @@ import java.io.BufferedReader; | 
			
		
	
		
		
			
				
					
					|  |  |  | import java.io.File; |  |  |  | import java.io.File; | 
			
		
	
		
		
			
				
					
					|  |  |  | import java.io.FileInputStream; |  |  |  | import java.io.FileInputStream; | 
			
		
	
		
		
			
				
					
					|  |  |  | import java.io.FileOutputStream; |  |  |  | import java.io.FileOutputStream; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | import java.io.FileReader; | 
			
		
	
		
		
			
				
					
					|  |  |  | import java.io.IOException; |  |  |  | import java.io.IOException; | 
			
		
	
		
		
			
				
					
					|  |  |  | import java.io.InputStreamReader; |  |  |  | import java.io.InputStreamReader; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -35,7 +36,7 @@ public class FileOperateHelper { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				file.createNewFile(); |  |  |  | 				file.createNewFile(); | 
			
		
	
		
		
			
				
					
					|  |  |  | 			FileOutputStream out = new FileOutputStream(file, true); // 如果追加方式用true
 |  |  |  | 			FileOutputStream out = new FileOutputStream(file, true); // 如果追加方式用true
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 			StringBuffer sb = new StringBuffer(); |  |  |  | 			StringBuffer sb = new StringBuffer(); | 
			
		
	
		
		
			
				
					
					|  |  |  | 			sb.append(message).append("\n"); |  |  |  | 			sb.append(message); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			out.write(sb.toString().getBytes("utf-8")); |  |  |  | 			out.write(sb.toString().getBytes("utf-8")); | 
			
		
	
		
		
			
				
					
					|  |  |  | 		} catch (IOException e) { |  |  |  | 		} catch (IOException e) { | 
			
		
	
		
		
			
				
					
					|  |  |  | 			// TODO: handle exception
 |  |  |  | 			// TODO: handle exception
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -55,10 +56,13 @@ public class FileOperateHelper { | 
			
		
	
		
		
			
				
					
					|  |  |  | 			File file = new File(path); |  |  |  | 			File file = new File(path); | 
			
		
	
		
		
			
				
					
					|  |  |  | 			if (!file.exists()) |  |  |  | 			if (!file.exists()) | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return ""; |  |  |  | 				return ""; | 
			
		
	
		
		
			
				
					
					|  |  |  | 			FileInputStream fis = new FileInputStream(file); |  |  |  | 			FileReader f =new FileReader(path); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			BufferedReader br = new BufferedReader(new InputStreamReader(fis)); |  |  |  | 	        BufferedReader br =new BufferedReader(f); | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | //			FileInputStream fis = new FileInputStream(file);
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | //			BufferedReader br = new BufferedReader(new InputStreamReader(fis));
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | //			BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(file),"UTF-8"));
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 			while ((tempString = br.readLine()) != null) { |  |  |  | 			while ((tempString = br.readLine()) != null) { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				sb.append(tempString); |  |  |  | 				sb.append(tempString).append("\r\n"); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 		} catch (Exception e) { |  |  |  | 		} catch (Exception e) { | 
			
		
	
		
		
			
				
					
					|  |  |  | 			// TODO: handle exception
 |  |  |  | 			// TODO: handle exception
 | 
			
		
	
	
		
		
			
				
					|  |  | 
 |