I have following code that wants to write the data generated with datagen to a file, but when I run the application, no target directory is created, and no data is written.<