Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

Copy data from file.txt to an array

$
0
0
Hello everyone !
I have to make a program where I have to take data from a .txt file and put that information into an INT.array.When I open the file , it looks like this :

125 George
59 Samantha
88 Name
75 Other Name
... ...
Number Name
etc, etc...

So I have to copy only the numbers from the text file and put them into an array. How do I do that ?
Thanks in advance !

Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>