Use getNewFile for output file in README's examples