AHA=)
No I do not use spaces in file names, I just dragged this code in the document word, and therefore turned out spaces in file names. I have already written code search product on its code in the database, that look like works.
function search_tov()
{
var temp;
fhandle = file_open_read("strings1.dll"); // файл содержит: j
j=file_var_read(fhandle); // теперь j
file_close(fhandle);
fhandle = file_open_read("Tovar.dll"); // test.txt содержит "this,was,a,test"
inkey_active=0;inkey(mul);
temp = file_find(fhandle,mul);
if (temp<0) str_cpy(ac,"Строка не найдена"); else
str_cpy(ac,"Найдена строка:");
for(i=0;i<j;i++)
{
file_str_read( fhandle, acc);
break;
wait(1);
}
file_close(fhandle);
delete_tov();
}