file opening in new window

iv been digging the google for some time now and can't figure out how to open a txt file in a new window if i enter some character to trigger it and open the file.. then close the file and able to resume to my console.. i tried exec(), popen() none of it work.. (i don't even know what is the library for it and if it works on a windows 7 OS
Topic archived. No new replies allowed.