반응형
import java.io.*;
public class Mains
{
public static void main(String[] args) throws IOException
{
DataOutputStream dos1 =
new DataOutputStream(
new BufferedOutputStream(
new FileOutputStream(
new File(new File("c:\\java"), "abc.txt"))));
dos1.writeInt(23);
dos1.writeDouble(12.345);
dos1.writeBytes("ABCDEFG!!");
dos1.close();
}
}
반응형