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 / Help with LIne parsing

Author
Message
Random 69
20
Years of Service
User Offline
Joined: 24th Aug 2004
Location: Marshmellowland
Posted: 8th Jan 2005 05:46
ok i am trying to make my program read stuff so if i put in my text file



The following poeple are men
jim
don
hydie


and i want the program to go Oh read jim and print "Jim" read don and print "don" and read hydie and print "hydie"

the problem is i can make it print it but it has to be on the very first line i want to make it so it doesnt matter what line it is on

more clear now?






ive heard this is line parsing or something pleaes help

Happy joy happy happy
Dodo
20
Years of Service
User Offline
Joined: 8th Aug 2004
Location: eating lunch
Posted: 10th Jan 2005 03:26
read string$ moves reads the entire line in the text file and then moves on to the next line, so this shouldn't be a problem. If you wanted to specify the line no. then using a previously saved array would be a better option.

Part of solving the problem is actually noticing that the problem is there in the first place

CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 10th Jan 2005 06:36
check out load array command

Random 69
20
Years of Service
User Offline
Joined: 24th Aug 2004
Location: Marshmellowland
Posted: 10th Jan 2005 06:44
http://forum.thegamecreators.com/?m=forum_view&t=45666&b=1

go there and it will explain it all

I made a extra security function for windows Ask me for it.

I can disable ctrl alt delete windows key and alt dab Ask me for dll and code 5 lines of code and dll

Login to post a reply

Server time is: 2024-09-23 08:30:51
Your offset time is: 2024-09-23 08:30:51