Create and Save text files on Android

How to create text file by reading data from collections and save it to Internal memory Android.

Please help me