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.

Code Snippets / [DBP / maybe DBC] Parsing a CSV in pure DarkBasic

Author
Message
Lucy
17
Years of Service
User Offline
Joined: 19th Apr 2007
Location: Roanoke, VA USA
Posted: 6th Sep 2007 18:10
Here's a function and a couple of usage examples for how to parse a CSV entirely in DBCode.



Next is how you might use a CSV to specify loading an object. This could be useful for producing a primitive, linear script, or used with Unity's message queue from lua scripts.

Have to warn you though, I wrote this next one on the editor for posting this thread, so it's untested. If it doesn't work, it shouldn't take too much work to get it working.


Nothing I say is intended to be rude. My autism means that I do not know what is rude and what isn't rude. I apologize if I seem rude. It is not my intention.
Jeff Miller
19
Years of Service
User Offline
Joined: 22nd Mar 2005
Location: New Jersey, USA
Posted: 7th Sep 2007 18:49
I'll have to check the speed against that of the DBPro Enhancement Pack data commands I use to read the .csv files. I have been using them for the very purpose you describe.

Login to post a reply

Server time is: 2024-11-22 18:37:11
Your offset time is: 2024-11-22 18:37:11