well i am trying to pass this parameter in a function --> char*[I]filename[/I]
[U][B]//i just wrote this as an example to explain clearer my question[/B][/U]
#include<stdio.h>
#include<stdlib.h>
void try (char *[I]filename[/I]) //[B] the question is how can i use the pointer to refer to a file? [/B]
{
printf("try");
}
int main ()
{
FILE *f=fopen("lol.txt","w+");
try(*[I]filename[/I]);
return 0;
}