We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi, I have been working on LPC2478 with the uvision IDE. Right now I am trying to bring a file on the SD card and open it in the web browser. I already have a function that extracts the required data from the files on SD card and makes plots with those values. Keil provides an example named upload to put a file on user computer on to the SD card. I am looking for the reverse. Please let me know if any one has a clue.
Thanks, Ram.
Thank you for the answer sivaram! Can you give me un example code, so that http_fopen can open files from folders !
Aelx,
Here is the code...I go in there look for a / which signifies there is a folder involved and then replace the path.
Sivaram.
Sivaram,
Isn't \\ the folder sign, and in a function like
f = fopen ((const char*)fname,"r")
how to specify that fname is from a folder
Thanks
Do an sprintf into fname with the folder you want the compiler to go thru...
sprintf((char *)fname,"Panel%d\\d09%02d%02d.csv",plot_month+1,plot_month+1,plot_date+1)
here my folder name is Panel with a subscript of month number.
Then the file names are d09monthdate
Thanks a lot!