0

I'm practicing for my upcoming test and I trying to figure out how to print data inside the FILE.
accounts.txt
carl,1234,17500.0
test102,12334,8640.0
test103,123435,5000.0
where:
'carl' is username
'1234' is password
'17500.0' is the balance of account
I have this code where it only prints all ...