Find files and insert data into them

  • Thread starter Thread starter Qwerty
  • Start date Start date
Q

Qwerty

How would I go about doing this? I want to be able to go through a
target directory, find files with a certain format (.toc), and then I
want to write new data to a line inside of the file.

I just need a general idea of what I need to learn in order to
accomplish this, you don't need to code anything for me ;-)

Thanks :)
 
Qwerty

Search for the following classes on msdn

Fileinfo class
Directoryinfo class
File class
streamwriter class
streamreader class
Binaryreader class
Binarywriter class

Although in those pages are all redirections to those other classes and
samples

I hope this helps,

Cor
 
Qwerty said:
How would I go about doing this? I want to be able to go through a
target directory, find files with a certain format (.toc), and then I
want to write new data to a line inside of the file.

I just need a general idea of what I need to learn in order to
accomplish this, you don't need to code anything for me ;-)

<URL:http://dotnet.mvps.org/dotnet/samples/filesystem/FileSystemEnumerator.zip>

+ classes 'FileStream', 'StreamWriter', 'StreamReader'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top