I've noticed that fileopen works a little bit different in native pb and .net assemblies (this has been tested in pb 12.5 and pb2017). Fileopen returns the file number assigned to filename we want to open.
If I use now fileopen in conjunction with fileclose within a loop, in pb native every fileopen will return for example value 1 (as before reopening the file I close it) if it's the first file to be opened.
But in .net assemblies the file number always increase! This can be a problem if someone wants to open (and close) more than 32768 files.
Has anyone an explanation for that?
May I consider this as a bug?