I want to scanf, dammit!

Answer

Why store your data in some random, unproductive fashion?

perl -lne'print foreach split' <file >one_per_line

Next