I have a text file and I want to check if it contains a string. The text file is stored in a char: array char buffer[512][128];.
Q1: Is it easier to buffer it in one long array instead of a multidimensional array? Q2: How can I check if the buffer contains a string char *s1 = "Hello world!";? I will need to search for a few lines.
source
share