Nice work ! The program needs to be upgraded. I suggest the following improvement:
1- The output file always pic.txt make it the same name like file the original file.
2- Make the user choose the output direcory or at least make the output in the same directory of the orignal file
3-Give options to choose font name and then use the character set of the font.
Good luck !