Hi Stieve,
May be i am stuck up in here:
What i want is stated below:
1) If i dont have the temp file, it should create a new file and copy the contents of serverlist(already existing) into the newly created temp file.
2) If the file is already existing, it should delete the temp file and again copy the contents of that file into the temp file.
All i want this to be done in the subroutine.