Truncating a string while storing it in an array in c
- by Nick
I am trying to create an array of 20 character strings with a maximum of 17 characters that are obtained from a file named "words.dat". After that the program should truncate the string only showing the first 17 characters and completely ignore the rest of that string. However
My question is: I am not quite sure how to accomplish this, can anyone…