Shoken Startup Blog

KitchHike Founder/CTO

ファイルに保存

FileOutputStream fos = new FileOutputStream("inertia_data.txt");
OutputStreamWriter osw = new OutputStreamWriter(fos , "MS932");
BufferedWriter bw = new BufferedWriter(osw);
bw.write(str);

bw.close();
osw.close();
fos.close();