opening webpages

This is a discussion on opening webpages within the C++ Programming forums, part of the General Programming Boards category; hey guys i was wondering what functions you would use to open a web page and either taking things from ...

  1. #1
    Registered User
    Join Date
    Jun 2005
    Posts
    1

    Unhappy opening webpages

    hey guys
    i was wondering what functions you would use to open a web page and either taking things from it or saving it as a txt. i was also wondering how you'd make a program take part a txt. like i fi had a txt file containing "this is my text files text" how would i tell it to only take the last part of it. "files text" thanks for your help

  2. #2
    Lead Moderator kermi3's Avatar
    Join Date
    Aug 1998
    Posts
    2,595
    Kermi3

    If you're new to the boards, welcome and reading this will help you get started.
    Information on code tags may be found here

    - Sandlot is the highest form of sport.

  3. #3
    *this
    Join Date
    Mar 2005
    Posts
    498
    I think he is talking about opening an html file in his program, like reading it in to make changes as if it was a regular text. You could then just use fstream like you would normally:

    Code:
    #include <fstream>
    ifstream inFile ("index.html", ios::in);

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. opening empty file causes access violation
    By trevordunstan in forum C Programming
    Replies: 10
    Last Post: 10-21-2008, 11:19 PM
  2. opening files sequentially
    By barneygumble742 in forum C++ Programming
    Replies: 9
    Last Post: 12-21-2006, 10:26 AM
  3. opening webpages
    By ReLiEnThAwK in forum Networking/Device Communication
    Replies: 9
    Last Post: 08-30-2006, 02:19 PM
  4. need help with file opening errors
    By lld4rkll in forum C++ Programming
    Replies: 6
    Last Post: 07-13-2006, 06:20 AM
  5. Stop opening in safe-mode
    By ihsir in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 02-03-2002, 08:59 PM

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