I have created a auto typer bot in C which simulate keys.
It first search for a paragraph according to user input and then simulate each character of that paragraph.
I have 3000 paragraph database and total number of character is more than 1,000,000.
So, please tell me, can i store all data in one character array?
My code is ---
char database[] = {"A string with more than 1,000,000 characters"};
char *start_position;
gets(s); // a small string given by user, this input is used to search which paragraph user want to simulate.
start_postion=strstr(database, s);
function_for_key_simulation();......
I have readed here that big array cause buffer overload. Please suggest me alternative methods to perform this task.