Find the answer to your Linux question:
Results 1 to 2 of 2
hello friends, actually i have two text file , one text file has any no. of words , and another file has some text inside that. so now i want ...
  1. #1
    Just Joined!
    Join Date
    May 2007
    Posts
    2

    communication between two text files by c program

    hello friends,
    actually i have two text file , one text file has any no. of words , and another file has some text inside that. so now i want to develop c (on linux) by which i should be able to check the occourrence of particular words form first text file to into another text file.
    plz suggest , how can i implement it.
    thanks

  2. #2
    Linux User cyberinstru's Avatar
    Join Date
    Jan 2007
    Location
    India
    Posts
    362
    1. Read all the words from the first file and add those words to a table or dictionary implementation.

    2. Start reading words from the second file and search for it in the table that you created and count the occurances.
    ---------------------------------
    Registered Linux User #440311
    HI2ARUN _AT_ GMAIL _DOT_ COM
    ---------------------------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...