This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
That depends on what "one by one" means. Could you clarify your question?
Joined: Apr 05, 2013
the link below is my code, i need all the saved user input(lowerClassMan.txt and upperClassMan.txt) to display out one after another. i kinda have it running but the problem is i get only 1 data one from each. and when it display the data of lowerClass it shows in horizontal and upperClass in vertical. somthing like this :
In the link mentioned by you, I found the code. But, that code does not read and/or write from/to file upperClassMan.txt. Are you sure this is the correct code? If not, please show us the code.
Also, I would follow simple logic:
1) counter = 0
2) Read line number 'counter' from file 1
3) Read line number 'counter' from file 2
Keep on iterating from step 2 until both files are done.
Of course, this is very bare-bone logic. You'll need to consider what happens when both files are not having equal number of files, and/or if one file is empty etc. But first, let's see your code and also let us know about actual file contents.