CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: small question

  1. #1
    Join Date
    Dec 2008
    Posts
    27

    small question

    i have made an application and i want to store the serial key in a separate file this way it can easily be changed when expired etc. but i have no idea on how to put it into a separate file any ideas? thanks in advance for any help.

  2. #2
    Join Date
    Nov 2003
    Location
    Belgium
    Posts
    8,150

    Re: small question

    You wrote the whole application but don't know how to write/read something from a file?
    Use std::ofstream to write data to a file and use std::ifstream to read it.
    Marc Gregoire - NuonSoft (http://www.nuonsoft.com)
    My Blog
    Wallpaper Cycler 3.5.0.97

    Author of Professional C++, 4th Edition by Wiley/Wrox (includes C++17 features)
    ISBN: 978-1-119-42130-6
    [ http://www.facebook.com/professionalcpp ]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured