P
Peace
I have been accumulating newsgroup messages from here for about 9 months now
almost since I started getting into .NET. Being the new year I decided to do
some organization.
The idea occured to me to write an application that stores the title, author
and contents to SQL database from which searches and the like can be done by
author and subject matter either in the subject line or the body of the
message. Then of course, becuase my SQL Server is public I would then share
the application with my many loyal friends on this ng and we would all
rejoice. (LOL)
Well maybe not . Most of you guys that taught me would be too far advanced
to need access to something like that. I have found going back and searching
old messages to be extremely helpful. If anyone will be interested let me
know. I will be happy to share the app when complete.
If nothing else it will be a good exercise for me.
The database, datasets, and such are set and I have done practice runs with
single messages to see how it would work and it worked okay.
As it turned out the easy part was writing the content to the database in
individual runs. The hard part was what you would think would be the
easiest, looping through the folder and reading the files.
The first thing I needed to do is write a routine to loop through all the
files in the folder I have stored these messages in that have an extension
of .nws and get the contents of the files. But with .nws files it is not
behaving as expected. I knew how to do this with text files. What do I need
to change for .nws files in order to do a loop thorugh the folder and read
the file?
(By the way using Outlook Express as a newsreader)
almost since I started getting into .NET. Being the new year I decided to do
some organization.
The idea occured to me to write an application that stores the title, author
and contents to SQL database from which searches and the like can be done by
author and subject matter either in the subject line or the body of the
message. Then of course, becuase my SQL Server is public I would then share
the application with my many loyal friends on this ng and we would all
rejoice. (LOL)
Well maybe not . Most of you guys that taught me would be too far advanced
to need access to something like that. I have found going back and searching
old messages to be extremely helpful. If anyone will be interested let me
know. I will be happy to share the app when complete.
If nothing else it will be a good exercise for me.
The database, datasets, and such are set and I have done practice runs with
single messages to see how it would work and it worked okay.
As it turned out the easy part was writing the content to the database in
individual runs. The hard part was what you would think would be the
easiest, looping through the folder and reading the files.
The first thing I needed to do is write a routine to loop through all the
files in the folder I have stored these messages in that have an extension
of .nws and get the contents of the files. But with .nws files it is not
behaving as expected. I knew how to do this with text files. What do I need
to change for .nws files in order to do a loop thorugh the folder and read
the file?
(By the way using Outlook Express as a newsreader)