For text-based (non-ini files) read up on /help $read & /help /write

For text-based (ini files) read up on /help $ini, /help $readini, & /help /writeini

If you still need more help after reading those, let us know just how the text file is being created and we'll try to help.