***External access help***

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • 187

    ***External access help***

    How would i go about accessing a text file within a program and
    modifying it. I have vc++ six and it would be cool to know how to do
    this. I am looking at making a program that will automatically update
    my website depending on information i put in a database.
  • Rolf Magnus

    #2
    Re: ***External access help***

    187 wrote:
    [color=blue]
    > How would i go about accessing a text file within a program and
    > modifying it.[/color]

    Search in your C++ book for streams. Especially ifstream (for reading),
    ofstream (for writing) and fstream (for both).

    Comment

    • John Harrison

      #3
      Re: ***External access help***


      "187" <element4emeric a@yahoo.com> wrote in message
      news:85aa3d6d.0 402210609.61db5 bb3@posting.goo gle.com...[color=blue]
      > How would i go about accessing a text file within a program and
      > modifying it. I have vc++ six and it would be cool to know how to do
      > this. I am looking at making a program that will automatically update
      > my website depending on information i put in a database.[/color]

      You should look at the iostream library. You will find out all about it in
      the help files that come with your compiler.

      john


      Comment

      • Thomas Matthews

        #4
        Re: ***External access help***

        John Harrison wrote:
        [color=blue]
        > "187" <element4emeric a@yahoo.com> wrote in message
        > news:85aa3d6d.0 402210609.61db5 bb3@posting.goo gle.com...
        >[color=green]
        >>How would i go about accessing a text file within a program and
        >>modifying it. I have vc++ six and it would be cool to know how to do
        >>this. I am looking at making a program that will automatically update
        >>my website depending on information i put in a database.[/color]
        >
        >
        > You should look at the iostream library. You will find out all about it in
        > the help files that come with your compiler.
        >
        > john
        >
        >[/color]





        One should always consult the FAQ and search the newsgroups
        and web before posting.

        --
        Thomas Matthews

        C++ newsgroup welcome message:

        C++ Faq: http://www.parashift.com/c++-faq-lite
        C Faq: http://www.eskimo.com/~scs/c-faq/top.html
        alt.comp.lang.l earn.c-c++ faq:

        Other sites:
        http://www.josuttis.com -- C++ STL Library book

        Comment

        Working...