/** * 用缓存的字节入做写入操作 * */ @Test public void testOutPut(){ String filePath = "F://test1.txt"; String writeString = "testOutPut:1231"; int tempLength = 2; StringBuffer bs = new StringBuffer(); int each = 0; try { ops = new FileOutputStre