[Java]?????????????
???????????? ???????[ 2017/1/20 10:41:50 ] ????????Java ??????? ???
????//??ζ?????У????????null????????
????while((tempString=reader.readLine())!=null){
????//????к?
????System.out.println("line"+line+":"+tempString);
????line++;
????}
????reader.close();
????}catch(IOExceptione){
????e.printStackTrace();
????}finally{
????if(reader!=null){
????try{
????reader.close();
????}catch(IOExceptione1){
????}
????}
????}
????}
????/**
????*?????????????
????*/
????publicstaticvoidreadFileByRandomAccess(StringfileName){
????RandomAccessFilerandomFile=null;
????try{
????System.out.println("?????????????????");
????//???????????????????????????
????randomFile=newRandomAccessFile(fileName??"r");
????//?????????????
????longfileLength=randomFile.length();
????//??????????λ??
????intbeginIndex=(fileLength>4)?4:0;
????//???????????λ?????beginIndexλ?á?
????randomFile.seek(beginIndex);
????byte[]bytes=newbyte[10];
????intbyteread=0;
????//??ζ?10???????????????????10???????????μ?????
????//????ζ?????????????byteread
????while((byteread=randomFile.read(bytes))!=-1){
????System.out.write(bytes??0??byteread);
????}
????}catch(IOExceptione){
????e.printStackTrace();
????}finally{
????if(randomFile!=null){
????try{
????randomFile.close();
????}catch(IOExceptione1){
????}
????}
????}
????}
????/**
????*??????????л?????????
????*/
????privatestaticvoidshowAvailableBytes(InputStreamin){
????try{
????System.out.println("?????????????е???????:"+in.available());
????}catch(IOExceptione){
????e.printStackTrace();
????}
????}
????publicstaticvoidmain(String[]args){
????StringfileName="C:/temp/newTemp.txt";
????ReadFromFile.readFileByBytes(fileName);
????ReadFromFile.readFileByChars(fileName);
????ReadFromFile.readFileByLines(fileName);
????ReadFromFile.readFileByRandomAccess(fileName);
????}
????}
????[Java]?????????????
????5???????????????β??
????[Java]?????????????
????publicclassAppendToFile{
????/**
????*A???????????????RandomAccessFile
????*/
????publicstaticvoidappendMethodA(StringfileName??Stringcontent){
????try{
????//???????????????????????д???
????RandomAccessFilerandomFile=newRandomAccessFile(fileName??"rw");
????//?????????????
????longfileLength=randomFile.length();
????//??д????????????β??
????randomFile.seek(fileLength);
????randomFile.writeBytes(content);
????randomFile.close();
????}catch(IOExceptione){
????e.printStackTrace();
????}
????}
????/**
????*B???????????????FileWriter
????*/
????publicstaticvoidappendMethodB(StringfileName??Stringcontent){
????try{
????//?????д??????????????е?????????true???????????д???
????FileWriterwriter=newFileWriter(fileName??true);
????writer.write(content);
????writer.close();
????}catch(IOExceptione){
????e.printStackTrace();
????}
????}
????publicstaticvoidmain(String[]args){
????StringfileName="C:/temp/newTemp.txt";
????Stringcontent="newappend!";
????//??????A??????
????AppendToFile.appendMethodA(fileName??content);
????AppendToFile.appendMethodA(fileName??"appendend. ");
????//??????????
????ReadFromFile.readFileByLines(fileName);
????//??????B??????
????AppendToFile.appendMethodB(fileName??content);
????AppendToFile.appendMethodB(fileName??"appendend. ");
????//??????????
????ReadFromFile.readFileByLines(fileName);
????}
????}
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
Java???????????Щ???????????????Java????????????????Java?б???Map????????Java Web???????????????Java??????????????д?????Java????????7???????????????????????(java .net ?????)???Java??????????Python??????Java webdriver??λ????????′????е?????Java??д??????????????????Java???????????????JavaScript????????????Java?????????????????? Java???????10??????????????Java?м????????????????java???????ü???????????м???????????????????

???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????