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 / is there a way to...

Author
Message
Code Ninja
21
Years of Service
User Offline
Joined: 17th Dec 2003
Location: AZ, U.S.
Posted: 16th Mar 2004 22:01 Edited at: 16th Mar 2004 23:41
... read the first 255 (or whatever the maximum character number is) characters of a line in a file?

[edit] C'MON PPL! REALLY, I NEED HELP!

DragnBreth
of
Dragael Software
Tim Ballisto
21
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Right behind you.
Posted: 17th Mar 2004 00:03
open to read "test.txt",1
for letter=1 to 255 step 1
read string 1,1c$
255c$=255c$+1c$
next letter
print 255c$

i'm not at my db comp right now, so if it works tell me so i can save it in my snippet database.


Programs for programmers.
Code Ninja
21
Years of Service
User Offline
Joined: 17th Dec 2003
Location: AZ, U.S.
Posted: 17th Mar 2004 00:10
srry man, read string reads the entire line to the string...

DragnBreth
of
Dragael Software

Login to post a reply

Server time is: 2025-05-23 00:14:43
Your offset time is: 2025-05-23 00:14:43