it could be that writing separate files is the best way to go. Apple provides
some guidelines on where to put what files. I have read that people using the file system with PG have had their apps rejected by the Apple store but this may be inaccurate or have other circumstances.