How to work with txt files in MPLAB

Status
Not open for further replies.

mariuszoll

Member level 5
Joined
Aug 28, 2012
Messages
82
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
2,147
Hi,

I work on a project with PIC18F, and there are some very important variables in my program. The values of these variables is not recommended to read it from keyboard, it was sugested to read it from an extern txt file from a local/network drive.
First of all, I tried to declare a file( ex: FILE *fp ), but I got an error sintax.
So, I would like to know if it is possible to handle txt files, and if it is how?

Thank you in advance.
 

Hi,

Cannot you open the .fp file in a suitable windows program then cut and paste the data into whatever complier you are using with Mplab
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…