Using the Basic-Funktions for manipulating files needs a communication channal. This is normaly delivert by FreeFile. In LO Version: 5.3.1.2 (x64) Build-ID: e80a0e0fd1875e1696614d24c32df0f95f03deb2 CPU-Threads: 8; BS-Version: Windows 6.19; UI-Render: Standard; Layout-Engine: neu; Gebietsschema: de-DE (de_DE); Calc: group on my System Windows 10 the Freefile command will always return 1 - so the Open-command get always an E/a Error. Seems to be a broken FreeFile function?
Additional comment: Maybe it is not a LO problem, but a windows problem. The error will only occur if path to file is "c:\" - so the root dic of the windows start partition. Changing pathe (i.E. to d:\ or c:\testdir\ ) everything works as expected. So I would recommend to change LO Help-files of pages "Open" and "Freefile" Both pages do have examples with root-dic to "c:\" - so both will create E/a errors.
So I shift it to component "Documentation" and change subject. The same problem is for Open statement of kind Random and for Kill statement, because it is not possible to put a file into the root of drive C: at all. Wrong examples are in these files (all in sbasic\shared): 03010103.xhp, 03020101.xhp, 03020102.xhp, 03020103.xhp, 03020104.xhp, 03020201.xhp, 03020202.xhp, 03020203.xhp, 03020204.xhp, 03020205.xhp, 03020301.xhp, 03020303.xhp, 03020405.xhp, 03020410.xhp, 03050500.xhp
Something in this manner I was also just typing. Are there more .xhp files with this problem or just these Regina Henschel mentioned? Anyway, I want to take a look tomorrow, at least in our Pootle - German project.
I can confirm that this bug still persists in LO 7.1. Examples that try to write to the "C:\" folder do not work due to lack of permission. A note needs to be added in the Open statement help file (03020103.xhp) emphasizing that the user must have writing permissions to the folder where a file is being created.
Rafael Lima committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/help/commit/ef7a4ac4e88c6142ed29acc15a6d28ec85e8b9ce tdf#106944 Fix Basic examples using the Open statement
Rafael: is there more work to be done? If not, you can close as fixed.