Writing to a txt

Just wanted to know if flash can write to a txt file(without php), and if so how.
Please