I want to create text file on client machine and then want to write in that file. And while saving that file i want to ask user where he want to save file i.e. want to ask b
You can do it through flash "proxy" that uses FileReference class and communicating with flash using ExternalInterface
FileReference
ExternalInterface