so I'm working on a project where I'm trying to read thousands of lines from a text file in this format:
[email protected] 1209381231
[email protected] 1241231231
[email protected] 1231585849
[email protected] 2132389558
...
etc. etc. ....
Now, I want to read each email address into a string and completely ignore the numbers that comes after it, they aren't important to me. The numbers are separated from the email addressed by spaces.
So, what would be the best way to read each email address into their own string?