البحث عن كلمه في ملف ارجو المساعده في توضيح الفكره من البرنامج
البحث في الملفات
مغلق
هل تقصد فكرة البحث عن كلمة داخل ملف نصى ؟؟ أنا لا أرى فيها أى فكرة مجرد أن تعمل scan على الملف بعد فتحه. ولا إنت قصدك غير كدة ؟
let ptr be ther pointer to the file
while(!EOF)
{
fscanf(ptr,"%s",word)
if(!strcmp(word,searchword)
{
printf(" word exists in the file \n");
}
}
i wish that what you want
There are two ways to live: you can live as if nothing is a miracle;
you can live as if everything is a miracle
مشكور اخي وجزاك الله خيرا :lol:
هذا الموضوع مغلق.