Computer Science Canada Preload settings from text file? |
Author: | 0x8000 [ Sun Jun 18, 2006 8:06 pm ] | ||
Post subject: | Preload settings from text file? | ||
Okay I have this program (code below), and basically it just makes the cursor move down when you press mouse1, you can adjust the speed with [ and ], as well as + and -, now I want to be able to preload settings from a text file, so for example in the text file have the basic setting like "movedown 2.3", how would I go abouts doing that?
|
Author: | Martin [ Sun Jun 18, 2006 8:36 pm ] |
Post subject: | |
The header file that you're looking for is fstream. Here's a tutorial - http://www.functionx.com/cpp/articles/filestreaming.htm I wouldn't recommend getting into Windows API calls just yet. That stuff gets very complicated very quickly. And use iostream instead of iostream.h! iostream.h is the header for pre-standard input/output streams written 15+ years ago by AT&T. iostream is the standard for io streams, as specified by the C++ standard in 1998. |