how to take the first line of a file (ex. "MCGRATH T"), and create a second file with that very name ("MCGRATH T")?
how to take the first line of a file (ex. "MCGRATH T"), and create a second file with that very name ("MCGRATH T")?
Read the line from the first file into an array, then use that array as the first argument to fopen for your second file. Note that this will only work well if the line you read is a valid file name.
-Prelude
My best code is written with the delete key.