Board Thread:Questions and Answers/@comment-24973829-20140805220220/@comment-9531161-20140805221132

A complicated but complete tutorial:

http://petitcomputer.wikia.com/wiki/User_blog:Hseiken/Saving_massive_amounts_of_data_in_petitcom