In java, I need to write a string into a new file, like ‘c:\test\upload\myfile.txt’, if the ‘upload’ folder is not existing, it will automatically create it. how to do it ? Apache Commons IO has this API ?
In java, I need to write a string into a new file, like ‘c:\test\upload\myfile.txt’,
Share
See File.mkdirs() and File.mkdir()