[futurebasic] [FB] FileSpec open file

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : August 2012 : Group Archive : Group : All Groups

From: Douglas Stemen <dstemen@...>
Date: Wed, 1 Aug 2012 13:11:13 -0400
Can someone tell me how to open a file at a known destination (I do not want the user to have to select it). I have a folder on the desktop with a known name and data file inside it with a known name. I am currently using the following code to open a file that exists in the same folder as the application program. 

err = fn FSMakeFSSpec(SYSTEM(_aplVRefNum ),SYSTEM( _aplParID ),"MyData",MainFile)

I would like to be able to have the application program outside the folder. I have tried this version but it does not work.

err = fn FSMakeFSSpec(0,0,"~/Desktop/FoodPriceBook/MyData",MainFile)


Thank you.

Doug Stemen