so I'm working on a project where I'm trying to read thousands of lines from a text file in this format:
EMAILADDRESS1@EXAMPLE.COM 1209381231
EMAILADDRESS2@EXAMPLE.NET 1241231231
EMAILADDRESS3@EXAMPLE.ORG 1231585849
EMAILADDRESS4@EXAMPLE.COM 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?