Store value in ".txt" file from flash

Hello,

I want to know that how we can store value in a “.txt” file from flash .

Thanks