I'm having trouble wrapping my brain around this concept. I have taken two java classes before so this is my first C class. My question is about a portion of my assignment. Basically the assignment is it reads in data about a word search in the format like so:
Let me explain a little bit about the data. Every character has a space immediately after, so between each character, and a newline at the very end of the line. The word search is an array made up of N x N characters, so its size is always that of a square.
Immediately after the word search square is a list of the words each on its own separate line.
Here is my question, how do i use fgets() to get the information (at least the word search part) into an 2d array of 50 x 50 ( because it is stated the word search will never be as big as that).
I wrote down everything my professor said in class and was able to piece a little bit of it together.
I guess its a question of how i get the information from one file into my 2d array. And then how do i deal with the words at the end because I am going to need to search for them in the array later and display the array only showing the words in the puzzle, as if it solved them.