Capture the section and save the output to file