<?xml version="1.0" encoding="utf-8"?> <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" creationComplete="aa()"> <mx:Script> <![CDATA[ import mx.controls.Text; import flash.filesystem.File; import flash.filesystem.FileStream; import flash.filesystem.FileMode; public var xx:int=0; public var file:File = new File(); public function aa():void { file.nativePath = "C:\\Documents and Settings\\user\\Desktop\\aaa.txt";//create a txt file aaa.txt on desktop and give the path here var stream:FileStream = new FileStream(); stream.open( file, FileMode.READ ); var t:String = stream.readUTFBytes( stream.bytesAvailable ); //print string t
} ]]> </mx:Script> </mx:WindowedApplication> >--
You received this message because you are subscribed to the Google Groups "Flex India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.

