[Gambas-user] Path for open file write

Jeff Johnson jeffreyjohnson at ...1747...
Sun Jul 6 03:12:02 CEST 2008


I know this has probably been replied to many times.

This works
   hFile = OPEN "wxaprs.ini" FOR INPUT

This works
   hFile = OPEN "./wxaprs.ini" FOR INPUT


This fails with access forbidden
DIM hFile1 AS File
hFile1 = OPEN "./wxaprs.ini" FOR OUTPUT CREATE

This fails with access forbidden
DIM hFile1 AS File
hFile1 = OPEN "wxaprs.ini" FOR OUTPUT CREATE

This works
DIM hFile1 AS File
hFile1 = OPEN "/home/jeffjohnson/aprs/wxaprs.ini" FOR OUTPUT CREATE

I need to either determine the full working path so I can make it
hFile1 = OPEN $Path & "wxaprs.ini" FOR OUTPUT CREATE

or the correct way to create a file 

Any ideas of where I fell off the trolley?










More information about the User mailing list