Change values to textfile on SD card?

I have a Arduino code that read values from two lines on a SD card and these values determine how fast rgb led blink and how many differents colors it can display.

Is is possible to change these values in the text file from PC via serial Communication with Visual C#? Or change the text file on PC and then send the text file to arduino sd card also with Visual C#?

Or is there som other way to do this?

Ken76:
I have a Arduino code that read values from two lines on a SD card and these values determine how fast rgb led blink and how many differents colors it can display.

Is is possible to change these values in the text file from PC via serial Communication with Visual C#? Or change the text file on PC and then send the text file to arduino sd card also with Visual C#?

Or is there som other way to do this?

The Arduino is going to have act as intermediary anyway, so what is the point?

The PC does not know anything about the SD card in the shield.

Ken76:
I have a Arduino code that read values from two lines on a SD card and these values determine how fast rgb led blink and how many differents colors it can display.

Is is possible to change these values in the text file from PC via serial Communication with Visual C#? Or change the text file on PC and then send the text file to arduino sd card also with Visual C#?

Or is there som other way to do this?

A text file is a serial stream of characters, to change info in a text file, the normal practice is to:

Open the source file for read.
Open the destination file for write.

Then read each byte of the source, changing the 'read' byte if necessary, write the byte to the destination file.

After you have completely copied the 'source' file to the 'destination' file, delete the 'old source' file, rename the 'new' destination file as your 'source' file.

All done.

Chuck.

You can poll the serial port in the loop and delete the file on receipt of string from PC or whatever. The function is
remove()
not
delete() (!)
That string is then written to a new file of the same name in the normal manner. You could change filenames similarly. It is all simple enough but, since you are only using a couple of lines, I don't think you need the SD, you are only looking at this exercise as an extension of what you are doing now, but you didn't need one in the first place.