Yes, of course, you can use Java to create files with any contents you want them to have. Use a FileOutputStream, and just write out the bytes you want the file to have. Now, if you're trying to automatically stream out Java objects so that C can work with them, that's a more interesting issue. Is that what you want to do?