Go Down

Topic: Read text file (Read 436 times) previous topic - next topic

bayou020

Hello,
I'm a begineer, i've bought an arduino due which have 512kb of memory on the flash and i want to put a text file inside that flash which the size is 100kb, can anyone help me to find the right function to do that?

Thanx alot.

shteii01


Hello,
I'm a begineer, i've bought an arduino due which have 512kb of memory on the flash and i want to put a text file inside that flash which the size is 100kb, can anyone help me to find the right function to do that?

Thanx alot.

You could simply create a character array, like this:
char array_i_created[]="paste the contents of the file here";
http://arduino.cc/en/Reference/Array

bayou020

Thank you for the support :) but i want to use autopilot, i have generated the posisions (pitch,roll,yaw) in a matrix to send into the arduino and after that he sends that positions to the Razor IMU 9DOF, is there any solution to read the text directly like open("c:\test.txt",FILE_READ) thats what i want

Thanxxx alot

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy