Ahh now I remember I did do a small change...
I changed from fopen to fopen_s (I got warnings about it)
I use now:
if ((err=fopen_s(&handle3,fil
what should I change? should I keep using fopen_s
Main Topics
Browse All TopicsHi.
I have a program that opens files, does long processing and writing results to the files.
The processing can take hours meanwhie I go to the dir and double click the files to see the info that was written.
I probably changed something in the current version of the program or in the project settings or in the Windows vista 64 because now when I try to see the content of the file by double clicking it I get the message:
notepad :the process cannot access the file because it is being used by another process
any suggestions?
thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
try using a texteditor, that does not try to open it in excusive mode, like Text-Pad:
http://www.textpad.com/dow
ike
as explained in MSDN: http://msdn.microsoft.com/
Files opened by fopen_s and _wfopen_s are not sharable. If you require that a file be sharable, use _fsopen, _wfsopen with the appropriate sharing mode constant (for example, _SH_DENYNO for read/write sharing).
Business Accounts
Answer for Membership
by: jaime_olivaresPosted on 2009-08-14 at 12:34:05ID: 25101569
you have to open the file in non-exclusive mode. Please post the code where you open it.