How to create a file, write data into it and read data from it on Android? If possible provide a code snippet.