# ... generate your report to report.txt ... system ("C:\\Windows\\notepad.exe report.txt");