Using fdevopen

I would like to know how can i use fdevopen in order to write and read some text included in an array like "hello world".

Use fdevopen on what? Read and write some text where?

Hi PaulS, I want to save “char almacen [46]” in “.txt” like if i were using in C++ FOPEN.

Thanks for help!

void Marca()
{
char Pantalla[27]="Las coordenadas de B son: ";
char cadena=“011100010111100110101011110”;
char almacen[46];

char *p,*P1;
int i;
int f;
i=0;
f=0;

p=&cadena[0];
P1=&Pantalla[0];

while (p!=’\0’)
{
if(p==‘0’){
int b = 32;
almacen[f]=Pantalla
;

_ Serial.print(Pantalla*);_
_
f=f+1;_
_
almacen[f]=’ ';_
_
Serial.print(b, BYTE);}*_

_ if(p==‘1’){_
_
int b = 0;_
_ almacen[f]=Pantalla;
Serial.print(Pantalla);
}
p++;
i++;
P1++;
f++;
}*_

* int e;*
for (e = 0; e < 45; e = e + 1) {
* Serial.print(almacen[e]);*

}

The Arduino does not have a file structure system or much space to store data. It doesn't have a way to store and retrieve files.

You could attach a device like an SD card reader/writer to the Arduino, to provide this capability, but it is not a native capability.

For smaal amounts of data the EPRO memory could be used, but not like a filesystem.