Daniel Calvo

Open file on host computer from program running from internal flash

Discussion created by Daniel Calvo on Jan 14, 2009
Latest reply on Jan 14, 2009 by Daniel Calvo
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.