I need an opinion. I am writing a (5-10 user) multi-user business application. Files will reside on a Windows 2003 server and accessed by various XP workstation users. For a variety of reasons (not important here) I am using random access shared data files and accessing them them using FileOpen(), FileGet() etc method with structures.
Often, particular records may be kept open for extended times and other times not. My question is this. When a record is in use, is it better to keep the file open until the use of the record is finished or is it better to retreive the record, close the file and then re-open it to write any changes? Concurrency issues have been dealt with.
Thanks in advance for your advise.
Often, particular records may be kept open for extended times and other times not. My question is this. When a record is in use, is it better to keep the file open until the use of the record is finished or is it better to retreive the record, close the file and then re-open it to write any changes? Concurrency issues have been dealt with.
Thanks in advance for your advise.