1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Save input data once program closes

Discussion in 'C++' started by wesduncan, Sep 5, 2010.

  1. wesduncan

    wesduncan New Member

    Sep 5, 2010
    Likes Received:
    Trophy Points:
    I'm actually not even sure if this is possible. But I'm making a program just to help make checking gains/losses with the stock market easier for me. It's not real money just trying it out to see how I would do.

    But with the program, I'm just going to ask for the stock's symbol, price, and how many shares I want. and then the whenever I check that stock I'll put in the new amount that the stocks are worth, and do the math.

    Alright so my question is. Is there a way to have previous data that I input (ex. symbol, price, and shares) and just have that saved for the next time I use the program?
    I'm thinking a simple way would to have it create an output file to save the data in. Then whenever I run it again just use the data from there?

Share This Page