Guest mutant Posted March 22, 2003 Posted March 22, 2003 Hi. Can anyone tell me how to get a position of someting in the file? I need to find something in the file and then tell another function where it is. Quote
*Gurus* divil Posted March 22, 2003 *Gurus* Posted March 22, 2003 You would have to open the file and read its contents in to a string, then use the .IndexOf method of the String class to get the position of the substring. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Guest mutant Posted March 22, 2003 Posted March 22, 2003 Im afraid I cant do that... Im trying to make myself a DLL that can read a value from a given byte to another byte and then make those bytes into a file, so its like extracting a file. I got everyting else but I just cant figure out how to get the startng and ending byte. I dont think that will work good as a string, but im not sure. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.