0

Hehe. I tried googling this, but all I've come up was Visual C++ results. How would I go about reading from a VERY VERY basic ini file in console C++ Using DevC++?

The only things in the ini file are:

b=65.0
c=1.5
k=1.65

I'm linking to this ini so that the value of those numbers can be changed without recompiling the whole thing.

2
Contributors
4
Replies
5
Views
10 Years
Discussion Span
Last Post by jonathanasdf
0

Hehe. I tried googling this, but all I've come up was Visual C++ results. How would I go about reading from a VERY VERY basic ini file in console C++ Using DevC++?

Why would VC be different than DEV?

Open the file
Read a line
Figure out what the line contains

0

and how would you do this?
how would you program this? If I just use:

#include "file.ini"

it gives errors. How do you read from it?

Also, VC++ uses completely different commands from console c++ and WinAPI...

0

You need to learn how to OPEN and READ a file. There are a lot of threads here that show how, and there are tutorials all over the web. As well as books galore.

We're here to help, not to teach the basics you can find everywhere.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.