I have a socket client (the server is Win10) that tries to send an "xxx.bas" file to the rfo-basic/source folder:
filename$ = "/sdcard/rfo-basic/source/xxx.bas"
ip$ = "192.168.0.3"
port = 40002
socket.client.connect ip$, port
maxclock = clock() + 30000
if clock() > maxclock
print "Process timed out. Ending."
byte.open W, fw, filename$
I get the following error: Inval;id File Number at socket.client.read.filefw
If I set filenname$ - 'xxx.bas' then it works OK, but writes it into the data folder.
Can someone help me to be able to write to the source folder ?