[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 264: mysqli_fetch_assoc(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 326: mysqli_free_result(): Couldn't fetch mysqli_result
Pete's QBASIC Site Discuss QBasic, Freebasic, QB64 and more 2017-06-18T21:22:44-05:00 http://petesqbsite.com/phpBB3/app.php/feed/topic/5533 2017-06-18T21:22:44-05:00 2017-06-18T21:22:44-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=26278#p26278 <![CDATA[Re: Reading a line from a file and comparing.]]>
To read the file you need to OPEN the filename and INPUT the word(s) from the file.

http://www.qb64.net/wiki/index.php/OPEN

PS: QB64 does not need DOS and it works better and faster on PC's from XP up.

Statistics: Posted by burger2227 — Sun Jun 18, 2017 9:22 pm


]]>
2017-06-17T15:44:46-05:00 2017-06-17T15:44:46-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=26273#p26273 <![CDATA[Reading a line from a file and comparing.]]>
I need help loading saving and loading from a line of code in a file like example.sys for a password system.

Here's what I have the code as so far:

Code:

...SETPASS:CLSINPUT "Enter Password you want to set: ",setpass$INPUT "Confirm: ",confirmpass$IF confirmpass$ = setpass$ THEN password$ = setpass$ ELSE PRINT "Passwords not identical!":SLEEP 2:GOTO SETPASS(Code that saves line of code to file)...
After reboot:

Code:

PASSWORD:CLS(Code that sets the value of password$ from a specific line of code.)INPUT "Enter Password: ",passinput$IF passinput$ = password$ THEN GOTO DESKTOP ELSE PRINT "Wrong Password!":SLEEP 3:GOTO PASSWORD
Basically, how would I store a value onto a file and be able to access it later?

Statistics: Posted by MarkSkits — Sat Jun 17, 2017 3:44 pm


]]>