I’m a newbie to VB.NET and need some advice in planning a small application. I have a solid VB6 background but haven’t done any new development in 22 months -- I’ve been repairing and enhancing third party software (not .NET.)
At long last, I have a small programming project in VB.NET 2003, and I don’t want to jump right in without a good plan. (I haven’t received a functional spec yet, and will probably not get a technical spec.) I’m not looking for someone to code this for me, although I'd be grateful for any code examples. Mostly, I just want to know my work is headed in the right direction.
Currently, we receive text files from customers into DirectoryA. They’re in the right format, FormatA, and work with an existing process, which grabs the files and imports them into a database. This works and does not need to be changed.
However, a new process will be implemented to send us customer text files in a different format, FormatB. The text files in FormatB cannot be directly picked up by our existing process and imported into the database due to the different format. The FormatB text files will land in a different directory, DirectoryB, not in DirectoryA with the text files that are received in FormatA.
The program I’m asked to develop will not have a user interface. It will watch for text files in FormatB to land in DirectoryB on our application server. The program needs to create a text file in FormatA, rename per correct file naming conventions, and place the new file in DirectoryA where it will be picked up by our existing process. Also, I need to move the FormatB file (unconverted FormatB) into new directory DirectoryArchiveB.
For this new application, assume the new files, FormatB, have landed by magic into DirectoryB. (It’s not a high volume of text files – eventually we may get a few hundred per day, but we currently less than 100 customer text files.)
My first impulse is to create a Windows Service. I’ve been looking into the FileSystemWatcher to watch for new files, however I’m hearing we will process new files twice per day, not just whenever they land there. Also, I’ve been playing with StreamReader and StreamWriter to do the text file conversion. I’m VERY new to VB.NET and would appreciate any and all discussion of this. Thank you, thank you, thank you...
Tracey
At long last, I have a small programming project in VB.NET 2003, and I don’t want to jump right in without a good plan. (I haven’t received a functional spec yet, and will probably not get a technical spec.) I’m not looking for someone to code this for me, although I'd be grateful for any code examples. Mostly, I just want to know my work is headed in the right direction.
Currently, we receive text files from customers into DirectoryA. They’re in the right format, FormatA, and work with an existing process, which grabs the files and imports them into a database. This works and does not need to be changed.
However, a new process will be implemented to send us customer text files in a different format, FormatB. The text files in FormatB cannot be directly picked up by our existing process and imported into the database due to the different format. The FormatB text files will land in a different directory, DirectoryB, not in DirectoryA with the text files that are received in FormatA.
The program I’m asked to develop will not have a user interface. It will watch for text files in FormatB to land in DirectoryB on our application server. The program needs to create a text file in FormatA, rename per correct file naming conventions, and place the new file in DirectoryA where it will be picked up by our existing process. Also, I need to move the FormatB file (unconverted FormatB) into new directory DirectoryArchiveB.
For this new application, assume the new files, FormatB, have landed by magic into DirectoryB. (It’s not a high volume of text files – eventually we may get a few hundred per day, but we currently less than 100 customer text files.)
My first impulse is to create a Windows Service. I’ve been looking into the FileSystemWatcher to watch for new files, however I’m hearing we will process new files twice per day, not just whenever they land there. Also, I’ve been playing with StreamReader and StreamWriter to do the text file conversion. I’m VERY new to VB.NET and would appreciate any and all discussion of this. Thank you, thank you, thank you...
Tracey