Can Flash create a .txt or .xml file

I am making a flashcard generator and I would like to be able to create either a .txt or .xml file to store user input for generating the flashcards. Can Flash do this? I would rather have a file than use a sharedObject and store it in the cache.

Thanks for your help:)