How to restrict file size while writing to text file from an Android app
<p>My <code>Android</code> <code>App</code> continiously writing logs in a <code>.txt</code> file. I want to restrict this file size.ie, if file size exceeds <code>1MB</code> it will not write any more log and notification will be sent to the user that no more space in your log file.How can I implement that?</p>
