Thread: I\o

  1. #1
    Registered User
    Join Date
    Sep 2007

    Post I\o

    How would I use input and output to open a web browser and then inserting text into it?
    int x;
    ???? ifstream ("C:\internet explorer");
    scanf("%d", x);
    ofstream("%d", x);
    or is there some other input output file that I can use to do this, because they only open ascII character files?

  2. #2
    and the hat of sweating
    Join Date
    Aug 2007
    Toronto, ON
    Insert text where? In the address bar? In a text field on a web form?...

  3. #3
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    You probably can't easily pipe output from your program directly into a web browser such as IE. You'd be best off putting this data into a file, and then calling IE with that filename.

    Incidentally, you can open a file with its default program, be it Internet Explorer, Firefox, Notepad, or whatever, using ShellExecute() on the filename. See the FAQ for details.

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell

    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ:

    My website:
    Projects: codeform, xuni, atlantis, nort, etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Program crashing when I use IO
    By legit in forum C++ Programming
    Replies: 9
    Last Post: 05-31-2009, 07:54 AM
  2. Server deadlocks, Nonblocking IO, or Timeout?
    By 0xception in forum C Programming
    Replies: 6
    Last Post: 01-03-2005, 12:49 PM
  3. File IO with .Net SDK and platform SDK
    By AtomRiot in forum Windows Programming
    Replies: 5
    Last Post: 12-14-2004, 10:18 AM
  4. Totally puzzling IO problem
    By Vorok in forum C++ Programming
    Replies: 5
    Last Post: 01-06-2003, 07:10 PM
  5. more newbie questions - file io
    By sunzoner in forum C++ Programming
    Replies: 1
    Last Post: 06-13-2002, 04:33 AM