title: working in FILE expected ')' before string constant
body: <p>This code extract is from my final project in C course iam taking.
  This is the first time for me using FILE and fopens can someone help me solve this problem and lead me to be able to save users data in my program so help me solve it</p>
  <pre><code>#include&lt;stdio.h&gt;
  #include&lt;stdlib.h&gt;
  #include&lt;windows.h&gt;
  #include &lt;stdbool.h&gt;
  
  //main function
  int main(){
      system(&quot;cls&quot;); //Clears screen
      mainmenu();
  }
  //date structure
  struct date{
      int month,day,year;};
  //main structure
  struct {char name[50];
      char adress[60];
      char nationality[20];
      char acctype[23];
      double phone;
      int acc_no;
      double deposit;
      double age;
      struct date dob; //struct inside a struct for day of birth
      struct date newa;//struct in date struct for new account
      }add,check;
  
  //new account function
  void newacc(){
  
     FILE *records;
      records = fopen(&quot;records.dat&quot;,&quot;a+&quot;);
  
      system(&quot;cls&quot;);
      printf(&quot;Create an account Number:\n&quot;);
      scanf(&quot;%d&quot;,&amp;check.acc_no);
       if(check.acc_no==add.acc_no) printf(&quot;Acount Already in use!&quot;);
      printf(&quot;Name:\n&quot;);
      scanf(&quot;%s&quot;,add.name);
      printf(&quot;Age:\a&quot;);
      scanf(&quot;%lf&quot;,&amp;add.age);
      printf(&quot;Phone number:\n&quot;);
      scanf(&quot;%lf&quot;,&amp;add.phone);
      printf(&quot;Nationality:\n&quot;);
      scanf(&quot;%s&quot;,add.nationality);
      printf(&quot;Today's Date *date account created*(dd/mm/yyyy):\n&quot;);
      scanf(&quot;%d/%d/%d&quot;,&amp;add.newa.day,&amp;add.newa.month,&amp;add.newa.year);
      printf(&quot;Date of birth (dd/mm/yyyy):\n&quot;);
      scanf(&quot;%d/%d/%d&quot;,&amp;add.dob.day,&amp;add.dob.month,&amp;add.dob.year);
      printf(&quot;Account type:\n#Savings \n#Fixed 3 years \n#Fixed 10 years\n&quot;);
      scanf(&quot;%s&quot;,add.acctype);}
  //Error starts here
      fprintf(records,&quot;Account Number: %d\n Name:%s\n Age: %lf\n Phone Number: %lf\n Nationality: %s/n Day account created: %d/%d%/%d\n Date of birth: %d/%d/%d %s\n&quot;,add.acc_no,add.name,add.age,add.phone,add.nationality,add.newa.day,add.newa.month,add.newa.year,add.dob.day,add.dob.month,add.dob.year,add.acctype);
      fclose(records);
  
      printf(&quot;\nAccount created successfully!&quot;);
  </code></pre>
  <p>So my problem is in the FILE section and using it.</p>