Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Reading From File

Author
Message
heyufool1
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location: My quiet place
Posted: 19th Apr 2009 20:39
Hey! I have a file with this data:

and i want to assign each value to a variable ( a=100, b=255, c=255, etc.). I tried reading from the manual but i can't get it to work so how can i accomplish this? Thanks!

I'm poetry in motion
heyufool1
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location: My quiet place
Posted: 19th Apr 2009 21:19
Nevermind, I got it to work in a few minutes using fstream.h.

I'm poetry in motion
ABXG
15
Years of Service
User Offline
Joined: 1st Apr 2009
Location: Canada
Posted: 19th Apr 2009 21:21 Edited at: 19th Apr 2009 21:22
You can use C++ code for this. This example is not specific to DarkGDK, but you can easily throw in the relevant code.



------------------------------------
Currently 900+ lines of code into an "over-the-shoulder" action RPG with combat based on rag-doll physics.
heyufool1
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location: My quiet place
Posted: 19th Apr 2009 21:36
Thanks but a few minute too late for I already did it the same way as you lol

I'm poetry in motion

Login to post a reply

Server time is: 2024-09-30 23:21:28
Your offset time is: 2024-09-30 23:21:28