Good way to check if file already opened? (GW-BASIC porting) (Developers)
> The 1983 implementation basically looks through GW-BASIC's own table of
> open files, and compares drive letters, file names, and file extensions. I
> suppose this is enough under DOS 1.x, but it is not quite enough under DOS
> 2+ which may have subdirectories, network paths, etc.
A good excuse to go and play with GW-BASIC . Interestingly, the current version seems to do exactly the same thing and only look at the file name. I get the "File already open" error (might not be the exact wording, I seem to have a German version of GW-BASIC) when trying to remove a file with the same name as another one I'm keeping open in another directory.
Complete thread:
- Good way to check if file already opened? (GW-BASIC porting) - tkchia, 02.02.2021, 14:35 (Developers)
- Good way to check if file already opened? (GW-BASIC porting) - Ringding, 02.02.2021, 20:57
- Good way to check if file already opened? (GW-BASIC porting) - tkchia, 04.02.2021, 09:05
- Good way to check if file already opened? (GW-BASIC porting) - rr, 02.02.2021, 21:16
- Good way to check if file already opened? (GW-BASIC porting) - Laaca, 02.02.2021, 22:18
- Good way to check if file already opened? (GW-BASIC porting) - tkchia, 13.02.2021, 19:23
- Good way to check if file already opened? (GW-BASIC porting) - Ringding, 02.02.2021, 20:57