This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
TyDoesMC's profile picture

Getting strings/variables with dofile()

Started by TyDoesMC, 18 May 2015 - 07:02 PM
TyDoesMC #1
Posted 18 May 2015 - 09:02 PM
Hello, I recently joined a good server with CC and hacking and stealing files ect is allowed, I was wanting to make a password and asked some staff on the server a secure way. they said store it on a disk and put it in and use dofile() inside the password program to get the password/username. how would I achieve this, I have no idea what I would need to do.
Edited on 18 May 2015 - 07:03 PM
Lupus590 #2
Posted 18 May 2015 - 09:58 PM
fs API no dofile needed
KingofGamesYami #3
Posted 18 May 2015 - 11:19 PM
If you don't want your files stolen, put them on a disk and keep it in your inventory. Password locks are very easy to bypass.

However, the fs api is the best way to handle data stored in files.