Pages: [1]   Go Down
Author Topic: Read text file  (Read 400 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Newbie
*
Karma: 1
Posts: 22
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you for the support smiley 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
Logged

Pages: [1]   Go Up
Jump to: