Hey everyone,
I'm having trouble making a script that copies data from specific cells in a excel worksheet to a specified location inside a text document, overwriting previous values.

For instance,

Excel worksheet:

X-axis Y-axis Z-axis
10 11 12



Text(before):

X = 4
Y = 6
Z = 2

Text(after running script)
X = 10
Y = 11
Z = 12

I just want to replace the value in the text document with the value under a column in an excel worksheet. Is there a way to tell the script to search for "X=" inside the text and then place the values after it? Any help would be appreciated! thanks!