data is not shown because u didn't close the file. Write fout.close(); after the write opertaion is performed on a file..........:happy:
Separate names with a comma.