views:

23

answers:

0

Hi All,

I am having an text area in .mxml file.

<mx:TextArea id="outputText" .../>

I am exporting its data into a .txt on a button click. as -

FileReference fRef=new FileReference;
fRef.save(outputText.text,"testFile.txt");

But the problem is when I export it into a text file, it gets stored a single line instead of multiple lines (As its present in TestArea)

For e.g. if TextArea contains

Hi

All

Its getting saved as -

Hi All

In the text file.

I want the data to be stored as multiple lines in text file. How to achieve this?