user53818: anyone can help me please to fix this error when I try to compilate says File does not exsist. It would be great if anyone can post the entirely code.
Link of code below if anyone can help me please:
https://create.arduino.cc/editor/Jawad2001/5ea57339-7ca1-4f8d-ab00-f4f1aa639209/preview
error: expected')' before 'f'
Sorry I'm new at this sorry for the annoyances.
Thanks For all your Help.

user48562: Here are several things I can see from your code that cause most of the error messages.
1) You declare
File data_txt;
File data2_txt;

but you later use data_file and data_file2. This is why you see the "not declared in this scope" errors.
2) You do not properly define the functions getData() and getData2(). You start with the definition of getData2() inside the function getData().
First finish the function getData() by closing all brackets you opened and then define the function getData2(), like this:
void getData() {
//the code of getData() goes here....
}

void getData2() {
//the code of getData2() goes here....
}

3) I assume you want to write to data_file in getData() and to data_file2 in getData2()?! Nevertheless, you also use data_file in getData2(). 
Update after your edit:
Regarding the compilation error, you do not open a curly bracket
{
after getData2().
However, there are several other issues that will lead to problems, even if it finally does compile without problems.

53818: <p>anyone can help me please to fix this error when I try to compilate says File does not exsist. It would be great if anyone can post the entirely code.</p>

<p>Link of code below if anyone can help me please:</p>

<p><a href="https://create.arduino.cc/editor/Jawad2001/5ea57339-7ca1-4f8d-ab00-f4f1aa639209/preview" rel="nofollow noreferrer">https://create.arduino.cc/editor/Jawad2001/5ea57339-7ca1-4f8d-ab00-f4f1aa639209/preview</a></p>

<p>error: expected')' before 'f'</p>

<p>Sorry I'm new at this sorry for the annoyances.</p>

<p>Thanks For all your Help.</p>
 48562: <p>Here are several things I can see from your code that cause most of the error messages.</p>

<p><strong>1)</strong> You declare</p>

<pre><code>File data_txt;
File data2_txt;
</code></pre>

<p>but you later use <code>data_file</code> and <code>data_file2</code>. This is why you see the "not declared in this scope" errors.</p>

<p><strong>2)</strong> You do not properly define the functions <code>getData()</code> and <code>getData2()</code>. You start with the definition of <code>getData2()</code> inside the function <code>getData()</code>.<br>
First finish the function <code>getData()</code> by closing all brackets you opened and then define the function <code>getData2()</code>, like this:</p>

<pre><code>void getData() {
//the code of getData() goes here....
}

void getData2() {
//the code of getData2() goes here....
}
</code></pre>

<p><strong>3)</strong> I assume you want to write to <code>data_file</code> in <code>getData()</code> and to <code>data_file2</code> in <code>getData2()</code>?! Nevertheless, you also use <code>data_file</code> in <code>getData2()</code>. </p>

<p><strong>Update after your edit:</strong></p>

<p>Regarding the compilation error, you do not open a curly bracket</p>

<p><strong>{</strong></p>

<p>after <code>getData2()</code>.</p>

<p>However, there are several other issues that will lead to problems, even if it finally does compile without problems.</p>
