# save array info a file and read latter

**URL:** <https://forums.digi.com/t/save-array-info-a-file-and-read-latter/9956>\
**Category:** Rabbit\
**Created:** [September 3, 2007, 11:18pm UTC](https://forums.digi.com/t/save-array-info-a-file-and-read-latter/9956 "2007-09-03T23:18:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![omarp](https://avatars.discourse-cdn.com/v4/letter/o/7cd45c/32.png) [@omarp](https://forums.digi.com/u/omarp)\
**Post date:** [September 3, 2007, 11:18pm UTC](https://forums.digi.com/t/save-array-info-a-file-and-read-latter/9956/1 "2007-09-03T23:18:23Z")

</div>

Hello: Im ussing RCM3700, DC9.21, RabbitWeb.  
I have a structure array as this

typedef struct {  
char wnomserv[20];  
char wdirip[16];  
int wport;  
char wservicio[10];  
int walertado;  
int wllamador;  
char westado[3];  
char wtest[3];  
} testcpu;  
testcpu nodo[61];

I Store data into this array from a shtml page with RabbitWeb, and this works very good.  
But this data is very large to retype if RCM3700 reset.  
Then I need a cgi routine to create a txt file with all data of the array and store this to a ftp server. I thing separate each field with a “;”.

If the RCM3700 is reseted or if I need change it because is wrong, I need download the txt file and store the data in the array again. This routine should be called form a cgi.

I apreciate any help for this.

Sorry for my poor english !

Omar P
