Java Filewrite

最終更新日21 May 2015 03:06

バイナリデータを一気に書き込む

File file=new File("data.bin");
int size=5;
byte[] buf={'1','2','3','4','5'};
BufferedOutputStream outStream = new BufferedOutputStream(new FileOutputStream(file));
outStream.write(buf, 0, size);
outStream.close();


files

サポートサイト Wikidot.com