|
-
read numbers and string from textfile into a vector
I am trying to read the below textfile into a vector.
I have create a class Student, and then I’ve call the file reader to read in line, but then how do I make it read all names, then all numbers and all notes and put it in a vector.
I am stuck here, any hint most welcome.
Text file :
sally
175
notes on students
mark
180
notes on students
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks