This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
ok, I was not understanding how Scanner works, thought the default was to find carriage returns in a text file. Looked what was happening with the debugger and came out with this :