Question.File Management on Arduino Leonardo

Note: I have arduino leonardo connected to my laptop via USB.
Question: Can i make/change file on my laptop by using leonardo ?

I try the standard move :

#include <stdlib.h>
#include <stdio.h>

void setup()
 { FILE *p;

   p=fopen("D:\armin\file.txt","w");
   fprintf(p,"%s","SomeLetters");
   fclose(p);
 }

But it’s not working.

Question: Can i make/change file on my laptop by using leonardo ?

No. You could send some information to the PC, where another program is listening, and have that program create a file.

PaulS: No. You could send some information to the PC, where another program is listening, and have that program create a file.

You mean using the keyboard library on arduino ?

You mean using the keyboard library on arduino ?

No. I mean using Serial.print().

Ok , thanks for answer . Topic is closed.