How to make game to check, if the typed values match values from text file?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Adas_LTU

Hello, i am trying to make registration/login form on Godot 2.1.4 but i can’t make it. The form should work like that: user types registration info in dedicated fields (username, email, password), that info should be stored in text file, then the user launches game again he should type login info and the game should check if the login info matches the registration info from file. I would realy appreciate your help. i don`t know how to make it check if info match.

file info :
{“_newpassword”:“as”, “_email”:“as@as.as”, “_newusername”:“as”}
{“_newpassword”:“df”, “_email”:“df@df.df”, “_newusername”:“df”}
{“_newpassword”:“cv”, “_email”:“cv@jh.kl”, “_newusername”:“cv”}