Quote (carteblanche @ 8 Mar 2015 20:41)
output:
Code
[{Book=The Book of Even Primes, ID=6666666666666, Name=Bubba Dawg}]
[{Book=Design Patterns, ID=0000201633612, Name=GOF}, {Book=Design Patterns, ID=0000201633612, Name=GOF}]
[{Book=Applying UML and Patterns, ID=0000131489062, Name=Craig Larman}, {Book=Applying UML and Patterns, ID=0000131489062, Name=Craig Larman}, {Book=Applying UML and Patterns, ID=0000131489062, Name=Craig Larman}]
[{Book=Partying in Athens, ID=0000000000000, Name=Bubba Dawg}, {Book=Partying in Athens, ID=0000000000000, Name=Bubba Dawg}, {Book=Partying in Athens, ID=0000000000000, Name=Bubba Dawg}, {Book=Partying in Athens, ID=0000000000000, Name=Bubba Dawg}]
[{Book=Tom Sawyer, ID=5763542378602, Name=Mark Twain}, {Book=Tom Sawyer, ID=5763542378602, Name=Mark Twain}, {Book=Tom Sawyer, ID=5763542378602, Name=Mark Twain}, {Book=Tom Sawyer, ID=5763542378602, Name=Mark Twain}, {Book=Tom Sawyer, ID=5763542378602, Name=Mark Twain}]
[{Book=Huckleberry Finn, ID=2389476109875, Name=Mark Twain}, {Book=Huckleberry Finn, ID=2389476109875, Name=Mark Twain}, {Book=Huckleberry Finn, ID=2389476109875, Name=Mark Twain}, {Book=Huckleberry Finn, ID=2389476109875, Name=Mark Twain}, {Book=Huckleberry Finn, ID=2389476109875, Name=Mark Twain}, {Book=Huckleberry Finn, ID=2389476109875, Name=Mark Twain}]
[{Book=The Prince and the Pauper, ID=7835654290127, Name=Mark Twain}, {Book=The Prince and the Pauper, ID=7835654290127, Name=Mark Twain}, {Book=The Prince and the Pauper, ID=7835654290127, Name=Mark Twain}, {Book=The Prince and the Pauper, ID=7835654290127, Name=Mark Twain}, {Book=The Prince and the Pauper, ID=7835654290127, Name=Mark Twain}, {Book=The Prince and the Pauper, ID=7835654290127, Name=Mark Twain}, {Book=The Prince and the Pauper, ID=7835654290127, Name=Mark Twain}]
The Prince and the Pauper
The Prince and the Pauper
The Prince and the Pauper
The Prince and the Pauper
The Prince and the Pauper
The Prince and the Pauper
The Prince and the Pauper
2 issues i see, its skipping every other line in the .txt file but thats probably because my delimiter is ", " and doesnt have \n as well...each line doesnt end in a comma.
and as it goes thru the loop it seems to be writing subsequent lines i times?
edit: put the print statement of myMap outside the loop and got:
Code
[{Book=The Prince and the Pauper, ID=7835654290127, Name=Mark Twain}, {Book=The Prince and the Pauper, ID=7835654290127, Name=Mark Twain}, {Book=The Prince and the Pauper, ID=7835654290127, Name=Mark Twain}, {Book=The Prince and the Pauper, ID=7835654290127, Name=Mark Twain}, {Book=The Prince and the Pauper, ID=7835654290127, Name=Mark Twain}, {Book=The Prince and the Pauper, ID=7835654290127, Name=Mark Twain}, {Book=The Prince and the Pauper, ID=7835654290127, Name=Mark Twain}]
The Prince and the Pauper
The Prince and the Pauper
The Prince and the Pauper
The Prince and the Pauper
The Prince and the Pauper
The Prince and the Pauper
The Prince and the Pauper
so its overwritting every trip
This post was edited by Wacko on Mar 8 2015 07:47pm