Hi Wayne,
thanks for your reply. it's work good now. but why the result textfile at the end contain 2 crlf? is there any wrong with my coding?
btw i still confuse between print #1, , A and print #1, A