Data file import

15 Sep 2009

I want to import some data files into my application, but this does not seem to be supported by the compiler import function. How can I do this, please?

15 Sep 2009 . Edited: 15 Sep 2009

Rather than trying to compile your data files in to the binary in someway, maybe it would be best to have them stored in a separate file on the MBED and use the LocalFileSystem mechanism to read the data from them?

15 Sep 2009

Hi Mike

I guess this might be possible, apart from the current problem with the local file system which means that you stop any access from the host until the program exits. I want to be able to write files that can be written or read by the host without having to press the reset button on mbed.

16 Sep 2009

ps The code includes statements like:

 #include "Hamming256.dat"

so I need to be able to access such data files when compiling.

Tony

16 Sep 2009

pps I tries importing the data files as a zip file, but the web site stuttered for a while and then rejected them all!

Tony

The way I've been doing it is as follows:

1) Open a new file by right clicking on your program name and selecting "new file"

2) Save it as the name you want (i.e. Hamming256.dat)

3) Open that file and just use cut and paste to transfer all the data from one file to the other.

It takes time, but it works.

Scott