正在加载图片...
LOW-Level File I/0-output //set up file and stream File outFile new File("samplel data")i Fileoutputstream outstream new Fileoutputstream( outFile //data to save byte[] byteArray =110, 20, 30,40 50,60,70,80} //write data to the stream outstream write( byteArray )i //output done, so close the stream outstream close()i C 2000 McGraw-Hill Introduction to Object-Oriented Programming with Java--Wu Chapter 11-7© 2000 McGraw-Hill Introduction to Object-Oriented Programming with Java--Wu Chapter 11 - 7 Low-Level File I/O – Output //set up file and stream File outFile = new File("sample1.data"); FileOutputStream outStream = new FileOutputStream( outFile ); //data to save byte[] byteArray = {10, 20, 30, 40, 50, 60, 70, 80}; //write data to the stream outStream.write( byteArray ); //output done, so close the stream outStream.close();
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有