creation Temporary files with ~ sign??
I am developing a file copy program on the Red Hat Linux 8.0 Kernel 2.14-18. Now when ever i run my program which ask for Source and Destination Directory my software works fine and the files are also copied. But along with that sometimes there are some files with ~ (tilde)sign, For example if there is a file called termcap then a file called termcap~ is also seen in the source folder ( not in the browser i.e. Nautilis but in the konsole or xterm when i give the command "ls" or "ll" ).
why is this happening? how can i get rid of this problem? i am using sendfile() command on the source side and normal recc() function on the destination side.