+ * @return success/failure of operation
+ */
+void filter_analyze_file(void *hook_data) {
+
+ g_print("textFilter::filter_analyze_file\n");
+
+ /*
+ * User may specify filtering options through static file
+ * and/or command line string. From these sources, an
+ * option string is rebuilded and sent to the filter core
+ */
+ a_file = fopen(a_file_name, "r");
+ if(a_file == NULL) {
+ g_warning("file %s does not exist", a_file_name);
+ return;
+ }
+
+ char* line = NULL;
+ size_t len = 0;
+
+ if(a_filter_string == NULL) {
+ a_filter_string = g_string_new("");
+ }
+ else {
+ g_string_append(a_filter_string,"&"); /*conjonction between expression*/
+ }
+
+ while(!feof(a_file)) {
+ getline(&line,&len,a_file);
+ g_string_append(a_filter_string,line);
+ line = NULL;
+ }
+
+ fclose(a_file);
+}
+
+/**
+ * filters the string input from user
+ * @param hook_data the hook data
+ * @return success/failure of operation