Include a text file into the project and recall line by line

General discussion on mikroPascal PRO for PIC32.
Post Reply
Author
Message
bobspencerr
Posts: 78
Joined: 17 Jun 2008 13:38

Include a text file into the project and recall line by line

#1 Post by bobspencerr » 19 Jun 2013 01:15

Hey all,

Is there a way to include a text file into the program which would allow me to retrieve the file line by line scrolling onto the display like an instruction manual?
Iv'e looked at the $I directive but this seems to require the included file to be in a particular format while I need to just have written text.

For instance, can I load a set of lines of text into the Flash ram at the programming stage which would allow me to then read it back and send it to the display?

Once again, any help appreciated.

User avatar
marina.petrovic
Posts: 2986
Joined: 18 Apr 2013 08:11

Re: Include a text file into the project and recall line by

#2 Post by marina.petrovic » 19 Jun 2013 12:12

Hi,

I did not quite understand the first part of the post?
Where you plan to store a text file that you want to use?

You can use mikroSD card or something like that for storing a text file.

Also, you can simple load text file into a flash and read it from there
(Help -> mikroPascal PRO for PIC Libraries -> Hardware Libraries -> Flash Memory Library).

Best regards,
Marina

Post Reply

Return to “mikroPascal PRO for PIC32 General”