Hi,
i have opened a file from a python sript using built in function 'file'. after reading data from that file, i closed the file descriptor and tried to delete the file but it gives an error that file is being used by another process whereas none of the process is using that file. If i manually select that file and delete it then it works. Following is the part of my script...
temp_file = file("temp_file.txt",'r')
while("some condition"):
msg = temp_file.readline().strip()
......................
...................
temp_file.close()
os.remove("temp_file.txt")