Click here to Skip to main content
15,891,905 members

Comments by Christiaan Rakowski (Top 25 by date)

Christiaan Rakowski 5-Dec-12 2:52am View    
If you have only one process this way will indeed work fine, I was assuming you were using multiple ones, I should have asked. Also, thanks for the link. It was a good read.
Christiaan Rakowski 5-Nov-12 13:54pm View    
If you look on the pages for the webclient and FileStream class you will see the code needed to do parts 1, 2 and 4. For part 3 you could use the Regex class, for an example Regex take a look at this post: http://stackoverflow.com/questions/5717312/regular-expression-for-url
The Regex class gives you an array of Matches, those containt the next URL to parse (recursivally) in their value.


http://msdn.microsoft.com/en-us/library/system.net.webclient(v=vs.100).aspx
http://msdn.microsoft.com/en-us/library/system.io.filestream(v=vs.100).aspx
http://msdn.microsoft.com/en-us/library/system.text.regularexpressions.regex(v=vs.100).aspx
Christiaan Rakowski 29-Oct-12 5:59am View    
Reason for my vote of 4
Nice read, I didn't even know this feature existed. Thanks for the information, it might provide useful some day!
Christiaan Rakowski 10-Oct-12 13:05pm View    
I'm pretty sure this will be possible in C++ via some weird Win32 API, but that's only a guess. I also don't think C# will allow you to do this, since from a security point of view this could lead to many bad things. Again, I a not certain, just assumptions.
Christiaan Rakowski 28-Sep-12 2:23am View    
That's very strange, I have never had that error before, and according to the MSDN article it doesn't even throw InvalidOperationExceptions. Are you sure it's from this line? What does the stacktrace say?