Open file on host computer from program running from internal flash

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Open file on host computer from program running from internal flash

1,086 Views
spartan
Contributor I
I am trying to do execute fopen, fread/fgets, and fclose functions on a file that is located on the host computer.  My program will be flashed to ColdFire's internal flash using CodeWarrior's flash programmer.  When the program runs/debugs, where does it look for the file when calling the      
fopen(filename, mode) function?
The program is to open a file, specified by the user, read it into a buffer for parsing, and then close the file.  I'm already using hyperterminal to take in user's filename but don't know where to go w/ file i/o commands.
 
Thanks
Labels (1)
0 Kudos
1 Reply

263 Views
spartan
Contributor I
Also,  I'm using a M52210 DEMO BOARD and CodeWarrior V 7.1
0 Kudos