Translate from C to Arduino

I made this code for C, but i´m new on arduino environment, i don´t know how can i create a file on arduino, and use pointers, some libraries are not nedeed. basically the program is to add a space in case finding “1” and not spacing in case finding “0” :o, so what i need is to convert “void marca” to an ARDUINO ENVIRONMENT and FP

#include <math.h>
#include <dos.h>
#include <stdlib.h>
#include <conio.h>
#include <stdio.h>

float AC=4,AB=6,BC=5,BX,BY,alfa,beta,gama,beta1,gama1,Cadena[2];
float *p,*P1;
FILE *FP;
char Pantalla=“Las coordenadas de B son:”;

void Marca()
{
char cadena=“0111000101111001101010111”;
char *p,*P1;
p=&cadena[0];
P1=&Pantalla[0];
while (*p!=’\0’)
{
if(*p==‘0’)
fprintf( FP,"%c", *P1 );
if(*p==‘1’)
fprintf( FP,"%c ", *P1 );

p++;
P1++;
}
}
void main ()
{
clrscr();
printf("\nPrograma para calculo de coordenadas de B:\n\n “);
FP=fopen(“c:\testo.txt”,“w+”);
alfa = acos(((BCBC)-(ABAB)-(ACAC))/(-2(ABAC)));
beta = acos(((AC
AC)-(BCBC)-(ABAB))/(-2*(BCAB)));
gama = acos(((AB
AB)-(BCBC)-(ACAC))/(-2*(BCAC)));
gama1 = 1.5707-gama;
beta1 = 1.5707-gama1;
BX = sin ((gama1)
(BC));
BY = sqrt((BCBC)-(BXBX));
Cadena[0]=BX;
Cadena[1]=BY;
Marca();
printf(”\n\n %f, %f\n\n",Cadena[0],Cadena[1]);

getch();
fclose(FP);

}

You can't create files on an Arduino. Where do you expect that file to be stored?

I think maybe you're confused... The Arduino environment is a C/C++ programming environment. So what you should do is copy and paste your code into a new sketch, and read the introductory material at this web site to get started (i.e. minimal setup and loop functions).