Cr4nk
Cr4nk

Reputation: 13

Lua import strings from file

I can't load my user.db into Lua.

user.db contains:

user1="XYZ1"
user2="Xzy2"
....
admin="ZXY"

Some Bash and Python scripts use the same db.

For Bash e.g. I used the source user.db command, but I don't have a clue for lua.

Should be something similiar outside?! I tried the require function but it didnt work.

Upvotes: 1

Views: 137

Answers (1)

dlask
dlask

Reputation: 9002

dofile "user.db"   -- try this

Upvotes: 1

Related Questions