File 'new_file.txt' created and content written successfully.