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 / Why doesnt DBP or DarkGDK have "Read Line" or InStr for Files

Author
Message
Z31NA2T
13
Years of Service
User Offline
Joined: 22nd Nov 2010
Location: Upstate NY
Posted: 26th Nov 2010 22:11
A long time ago I wrote and RPG engine in Blitz3D with scripting and used ReadLine and InStr to find the "commands" in the script files. I was trying to port it all over to DarkGDK (or DBP), and neither of these languages have the function I need to achieve this. I always figured Read Line and In String were pretty universal functions for a programming language (DBP) to have, and would be very useful.
MPQC
15
Years of Service
User Offline
Joined: 7th Sep 2009
Location:
Posted: 27th Nov 2010 00:31
C++ has libraries that already read files by line, try using fstream. I'd imagine that's why they didn't bother to put it in.

Login to post a reply

Server time is: 2024-11-19 16:25:28
Your offset time is: 2024-11-19 16:25:28