Save changes into SD

So there were the contents of the file:

char user1[]=67202;
char user2[]=62601;
char user3[]=60920;
char user4[]=61014;

right ?

You were not expecting Arduino to include a C-parser, did you ? :slight_smile:

I'd put one number on each line and write a function that would look more or less like this:

declare char readBuffer
declare int cnt=0

read one byte from file
if no more bytes, return
if the byte is CR or LF
readBuffer[cnt] =0
parse readBuffer to an integer, and store that as a new user id into the user ids array
else
store the byte in readBuffer
cnt++
endif