Thanks for your information...
Actually I read record from the table and also store a particular field in the text file...
But some additional value is automatically added with the end of the file as shown in the attachment... Also the records are not added one by one if I using the seq.put function...
Here is my script as follows.
function extern control.users.function()
file.pointer = seq.open(file.name, "w")
if file.pointer < 0 then
message("Can not find the file")
e = seq.close(file.pointer)
Can you please assist me to resolving this problem...