SD Card files

Hello,

I have working on project for my college work.
I want to get values of X,Y from .txt file from SD card and then I need add x+y and the store the sum as z in another .txt file.

I am very new to files in arduino, and confused alot. Can someone help in this regard.

Thank you!

eshwar1414:
Hello,

I have working on project for my college work.
I want to get values of X,Y from .txt file from SD card and then I need add x+y and the store the sum as z in another .txt file.

I am very new to files in arduino, and confused alot. Can someone help in this regard.

Thank you!

Some of us would like to HELP you but much more information is required. See, we don't know what Arduino you are working with or what SD reader you will be using.
Also, we would like to see your attempt at coding.
Lastly; don't assume we know any portion of your project.. We need details, like how are you going to display the contents of the second .txt file to show the answer?

Thank you for the reply.

I am using arduino uno board and LVC 125A IC based SD card module.
I just want to know how to take X,Y line by line from the file and compute the sum and store it as Z in another file. As there are multiple values as co-ordinates in the txt file I need take only one co-ordinate x,y and compute z and this process repeats till the last co-ordinate. Could you help me in this regard.

Do you need to read from the first file?
Or can you do something like is:

File1.print(x);
File1.print(y);
z = x + y;
File2.print(z);

Please provide your own code/attempt.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.