0

I am searching a way in SML to open a txt file whose name will be given by the user.

like in C where arv [1] is the user's filename of file.

int main (int argc, char * argv[])
{
   FILE * fp; 
   fp = fopen(argv[1],"r");
   ...........
   ...........
}
Spyreto
  • 29
  • 5

0 Answers0