Buongiorno a tutti.
ho bisogno di un aiuto nella divisione delle stringhe di testo lette da un file txt.
prova1,12345
prova2,aaaaa
prova3,123456789A
prova4,abcdef
prova5,abcd1234
prova6,ab123
prova7,xxxff
prova8,pe123ced
ho un file di testo di questo tipo che dove il primo campo è l’user name e il secondo la password, lo leggo e lo assegno ad una variabile globale, dopodichè lo taglio.
(Goodmorning everyone.
i need help in dividing text strings read from a txt file.
prova1,12345
prova2, aaaaa
prova3,123456789A
prova4, abcdef
prova5, abcd1234
prova6, ab123
prova7, xxxff
prova8, pe123ced
I have a text file of this type that where the first field is the user name and the second the password, I read it and assign it to a global variable, after which I cut it.)
ma non riesco a ottenere il secondo valore password perchè mi riporta tutta la parte rimanente del testo in questa maniera.
(12345
prova2,aaaaa
prova3,123456789A
…)
la mia intenzione è di caricare tutti gli user e tutte le password corrispondenti in queste due variabili globali
User
Password
per poi poter controllare l’accesso, ma non riesco in alcun modo.
dove sbaglio!
chi può consigliarmi!
Grazie
(but I can’t get the second password because it brings me back the rest of the text in this way.
(1 2 3 4 5
prova2, aaaaa
prova3,123456789A
…)
my intention is to load all the users and all the corresponding passwords in these two global variables
User
Password
to then be able to control access, but I can’t in any way.
where am I wrong!
who can advise me!
Thank you)