I am trying to load usernames and passwords from a text file into an array.
All seems to work fine except I want it to ignore spaces and returns (enters).
I ask this because when I put some names and passwords in the text file like this:
I can get it to work just fine.
But when i do this;
it seems to mess up.
Obviously the second option would be a lot easier to read though so I would like it to filter out the spaces and returns when putting it into the array.
Thanks for reading,