Try CSVWRITE
This is perhaps all that you need:
call CSVWRITE ( 'C:/MyFolder/MyCSV.txt', 'SELECT * FROM MYTABLE' )
You need to just run the call (mentioned above) in the browser based client of H2 that you are most likely using.
Further reading:
http://www.h2database.com/html/functions.html#csvwrite.