NCLARKE%DRUNIVAC.BITNET@cunyvm.cuny.edu (Neil Clarke) (04/29/89)
I have recently been working with TP5 in a multitasking DOS enviroment (Desqview) and have been making use of the DOS 3 file sharing abilities and record locking. After a bit of work I managed to get most of what I needed working, but there is one point that is bothering me. According to the TP5 manual, I can use the system variable filemode to change the mode that all resets use to open a file. The standard is 2 (read/write) but I need 66 (read/write/share nodeny). Fine, so I set the variable and its fine. I have a problem when it comes to the autocreation of some shared files in my program though. Rewrite ignores filemode according to the manual. Can anyone think of a solution to this problem? I know that I can use rewrite to create the file and then close it, reset it, and be get the right filemode... I'm hoping for something more graceful than that though. My hopes aren't that high though. If I could at least get one good reason why they force filemode 2 on rewrite then I'll be happy. It seems like I have another reason to check out the source package Borland offers... Neil Clarke 2AM Associates nclarke@drunivac.bitnet