I have using evaluation copy of Final Builder 6.3.0.2253. I am having a problem in writing to a text file.
My action flow is as follows.
Main Action --> [do some action] --> Write to text file [D:\Details.txt] (file created and written) --> [do some action] --> Write to text file [D:\Details.txt] --> build fails
The error message is as follows
Cannot open file "D:\Details.txt". The process cannot access the file because it is being used by another process.
Why do I get this? I have checked and there is no other application using that text file. I have also rebooted my machine and did run a fresh build and still build fails because of the same issue.
Is final builder running the first process of writing in the text file till the second one ?
If so, should I close or kill the process and If so, how can I close or kill the process ?
Hi, I have checked the process and I found that after writing in the text file for the first time, I am mailing the text file through send email action. Then I am again writing in the text file. The issue occurs here.
Cannot open file "\\\.txt". The process cannot access the file because it is being used by another process
In my situation, FinalBuilder Server was running a FinalBuilder script on the server where the file was being written. I was monitoring the log file from a Windows 7 laptop using Notepad++. When I ran the project again, without accessing it in Notepad++ on the Win 7 laptop, it ran fine. When I open the text files in Notepad++ on the build server using Notepad++, it is fine; Notepad++ doesn't lock it. I am in the process of looking at Win7 and Notepad++ for the culprit, but I thought I would mention this in case there are any suggestions on the FB action side of things that I overlooked.
Unfortunately there’s not much we can do if the file is locked. I suspect that windows does the file locking automatically when accessing it over a network. Test using plain old notepad, that will give you an idea if it’s windows or notepad++ locking the file (my money is on windows).