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.

DarkBASIC Discussion / How do I add stuff through txt files?

Author
Message
Dexus 136
16
Years of Service
User Offline
Joined: 8th Mar 2009
Location:
Posted: 18th Apr 2009 20:28
I wanna include some code through a command that just adds the stuff in. I found it a while back in the forums somewhere but I can't it anymore. Anyone know what this command is?
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 19th Apr 2009 04:46
Well theres #include which will include all the functions out of a file into your program so like if this was you main program:



and this was the Add.dba file



see?

New Site! Check it out \/
feiting shadow
18
Years of Service
User Offline
Joined: 12th Sep 2006
Location:
Posted: 19th Apr 2009 09:15
Caleb interpreted that one way, hopefully that was it, but do you mean Scripting, or loading objects otherwise?

I doubt the first one... if so you'd already know what Lua is and I'd recommend Unity or its brother... nameforgot...

The latter, just use the Open to Read command... then read string, byte... etc..

Signed
------
Dexus 136
16
Years of Service
User Offline
Joined: 8th Mar 2009
Location:
Posted: 19th Apr 2009 22:44
Caleb said the one I need. Thanks for the help!

Login to post a reply

Server time is: 2025-08-08 20:38:26
Your offset time is: 2025-08-08 20:38:26