How to store files internally on primary memory