I am reading from a text file some names and assigning them to arrays. Ex. Mike Smith
John Doe
When reading and assigning to firstName, 'Mike' takes up the first four indicies in the firstName array, but I only want 'Mike' to be in the first index (firstName[0]). Any suggestions?
kennywu54
0
Newbie Poster
Recommended Answers
Jump to PostPost the code of your attempt, as well as a copy of a snippet of the text file and your expected output.
All 3 Replies
Dave Sinkula
2,398
long time no c
Team Colleague
kennywu54
0
Newbie Poster
Dave Sinkula
2,398
long time no c
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.