public class HandleFileFolder extends Object
Constructor and Description |
---|
HandleFileFolder() |
Modifier and Type | Method and Description |
---|---|
void |
createFile(String fileName,
String contents)
this method create a file
|
void |
createFolder(String folderPath)
create folder if not exist
|
public void createFile(String fileName, String contents) throws IOException
fileName
- name / path for filecontents
- contents of the fileIOException
- write problemspublic void createFolder(String folderPath)
folderPath
- give the path to the folderCopyright © 2013. All Rights Reserved.