Create a .bin file in java

-1

I need to create a file with a .bin extension in JAVA, I have searched for an example but I have not found any information yet.

I would appreciate any information.

Thank you, Regards.

    
asked by jesus noel de la cruz martin 29.09.2017 в 17:40
source

1 answer

0

Try specifying it with the .bin extension and you will have a bin file:

File binFile = new File("c:/mi_archivo.bin");

if(!binFile.exists())
{
   binFile.createNewFile();
}

If you go to c:/ you find the file bin .

    
answered by 29.09.2017 в 17:49