generateFile
public static java.nio.file.Path generateFile(java.lang.String parentDirectory,
java.lang.String fileName,
int lengthInBytes)
throws java.io.FileNotFoundException,
java.io.IOException
Generates a file at the specified location
- Parameters:
parentDirectory - Directory where you would like to create the file
fileName - Name of the file to be created
lengthInBytes - Length of the file in bytes
- Returns:
- Java NIO Path object representing the file
- Throws:
java.io.FileNotFoundException - Thrown if the generation operation fails
java.io.IOException - Thrown if the generation operation fails