   how to generate dynamic files?
  I have this example of mine here ....char filename[255] = "abc.txt";FILE *stream = NULL;stream = fopen(filename, "w");fprintf("1234567890");fclose(stream);What I wouls like to know is ....If I write stream = fopen("abc.txt", "w");it works perfectly fine.... but if i want to input the filename from user i get a fprintf error ...saying"Expression str != NULL"plz help 
  Post the code. It may be that the string that you're passing to fopen is NULL, but it's hard to tell.   [edited by - woodsman on February 3, 2004 7:30:49 AM]