I\o

This is a discussion on I\o within the C++ Programming forums, part of the General Programming Boards category; How would I use input and output to open a web browser and then inserting text into it? int x; ...

  1. #1
    Registered User
    Join Date
    Sep 2007
    Posts
    6

    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
    Location
    Toronto, ON
    Posts
    3,545
    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
    Location
    Canada
    Posts
    8,047
    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.
    dwk

    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: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    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, 11:49 AM
  3. File IO with .Net SDK and platform SDK
    By AtomRiot in forum Windows Programming
    Replies: 5
    Last Post: 12-14-2004, 09:18 AM
  4. Totally puzzling IO problem
    By Vorok in forum C++ Programming
    Replies: 5
    Last Post: 01-06-2003, 06:10 PM
  5. more newbie questions - file io
    By sunzoner in forum C++ Programming
    Replies: 1
    Last Post: 06-13-2002, 04:33 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21