Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to test console application
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 3.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01349592
Message ID:
01349596
Views:
16
This message has been marked as the solution to the initial question of the thread.
>
>And I need to figure out what is wrong with it. I created a new Console application but then I try to debug it I obviously get an error. So, my question is how to test it.
>
>Also in terms of what is wrong here I guess no error checking is the first thing that is wrong. But what else is wrong?
>

Sorry, I didn't see the first question. Right-click on the project and select properties. Go to the debug tab. In the command line arguments enter the parameters. Now you can set a breakpoint and run/debug the program.

Besides normal error checking: does the file exist, exceptions thrown while attempting to read the file, the file is locked, it also doesn't really handle cases where there are spaces in the word(s) you're searching for (where you'd normally want to search for the string in quotes).
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform