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.

Newcomers DBPro Corner / Getting a certain data from external .txt file.....

Author
Message
Roses In Dreams
16
Years of Service
User Offline
Joined: 16th Jan 2008
Location: Somewhere outthere.
Posted: 24th Jan 2008 08:03
I dont know where to begin..
Can someone kindly give a code on getting certain words or number from a .txt file outside DBpro?

For example(just to clarify my question)>>


On the txt document:

10001 sniper 10 20 0 0
10002 gun 10 10 0 1
10003 grenade 100 10 0 0

On the DBpro file:

Id like to look for 10003 on the txt
get the string grenade
get the integer 100
get the integer 10
get the bool 0

If it is possible, can you tell me how to load a data like the number or string from a certain column of the certain row of 10003?

LAST QUESTION:
Can i do this?If not, why?
load $bmpname.bmp 1,1
$bmpname=anyword


SIDECOMMENT:
Sorry about the terrible grammar. I hope you get my point and give me some help.
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 24th Jan 2008 18:38 Edited at: 24th Jan 2008 18:48
Check out tutorial 4 here:

http://forum.thegamecreators.com/?m=forum_view&t=99497&b=10

And don't forget the search option - this subject has been covered many many times in the past.

As a new user this link also might be helpful so you get the best out of the forums in the future:

http://forum.thegamecreators.com/?m=forum_view&t=116024&b=10

(Item 8 in particular, though all sections will keep you on the right track).

TDK_Man

Login to post a reply

Server time is: 2024-09-27 10:28:23
Your offset time is: 2024-09-27 10:28:23