Go Back   CodingForums.com > :: Computing & Sciences > Computer Programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-18-2012, 01:01 PM   PM User | #1
alok7007
New to the CF scene

 
Join Date: Jan 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
alok7007 is an unknown quantity at this point
search for a string in a file in c#

I want to build an application. the inputs are as follows.

There are multiple files in a folder. Initially, there is a file parent.txt that contains list of some file names which are in th same folder. These files, with any extensions, are called by syntax CALL "abc.txt" or may be CALL "xyz.c". Corresponding file is opened. This abc or xyz file inturn may call several other files with the same syntax as mentioned above which hav to be opened and searched for the CALL stmnts. Thus the nesting of files may go to any level, files being called internally. 1 file may hav any no of CALL statements. In all, parsing for the CALL stmnts should be completed for all the list of files in the parent file.

Please help me as to how this can be done in c#.net iterativly, since a file can have many CALL statements, and called those files will again have many CALL stmnts. A little bit of logical help needed.



Thank You

Last edited by alok7007; 01-18-2012 at 01:14 PM.. Reason: Addition of information
alok7007 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:25 AM.


Advertisement
Log in to turn off these ads.