Click here to Skip to main content
15,890,579 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to search for a specific string in a file? [modified] Pin
harold aptroot6-Mar-10 12:21
harold aptroot6-Mar-10 12:21 
GeneralRe: How to search for a specific string in a file? Pin
SimpleData7-Mar-10 4:05
SimpleData7-Mar-10 4:05 
GeneralRe: How to search for a specific string in a file? Pin
Luc Pattyn7-Mar-10 8:41
sitebuilderLuc Pattyn7-Mar-10 8:41 
GeneralRe: How to search for a specific string in a file? Pin
SimpleData7-Mar-10 8:47
SimpleData7-Mar-10 8:47 
GeneralRe: How to search for a specific string in a file? Pin
Luc Pattyn7-Mar-10 9:09
sitebuilderLuc Pattyn7-Mar-10 9:09 
GeneralRe: How to search for a specific string in a file? Pin
SimpleData7-Mar-10 9:11
SimpleData7-Mar-10 9:11 
AnswerRe: How to search for a specific string in a file? Pin
Shane55557-Mar-10 3:28
Shane55557-Mar-10 3:28 
QuestionPlease help as i cant remember how to do this..... Pin
stephen.darling6-Mar-10 10:41
stephen.darling6-Mar-10 10:41 
Dear coders.

If you would not mind taking a look at this page...

http://www.licenturion.com/xp/fully-licensed-wpa.txt

If you see that the installation id is a string of digits, very long... e.g

234344-345656-898909-878766-567676-555655-454334-565556-77 etc

When the check digits are removed, it ends up as a 42 digit number, and this is represented as a byte array encoding of this, 17 bytes long.

How do i get the above long string of digits into its 17 byte representation?

I do not simply want a byte array the same lenght of the string (i.e. 41 digits) I need an actual byte array of 17 digits that represent the numer.

Basacaly, i need to be able to generate the byte array of the string above and vice versa (it may be a base-10 representation.

If no one can help, how can i do the following?

Have a byte array like

BYTE[] = {0x44, 0x34, 0x22, 0x47, 0x49, 0x78, 0x54, 0xf3, 0x2a, 0x44, 0x44, 0x28, 0x44, 0x83,
0x33, 0x22, 0x44}

17 bytes, to represent an encoding of a long number of forty something digits in a string of:

034333-495655-345444-090986-091232 etc....

Basacily as in the text above.
Thank you
Steve
AnswerRe: Please help as i cant remember how to do this..... Pin
StarBP6-Mar-10 11:05
StarBP6-Mar-10 11:05 
GeneralRe: Please help as i cant remember how to do this..... Pin
stephen.darling6-Mar-10 11:35
stephen.darling6-Mar-10 11:35 
AnswerRe: Please help as i cant remember how to do this..... Pin
Alan N6-Mar-10 11:35
Alan N6-Mar-10 11:35 
GeneralRe: Please help as i cant remember how to do this..... Pin
stephen.darling7-Mar-10 8:56
stephen.darling7-Mar-10 8:56 
QuestionGDI+ P/Invoke Pin
StarBP6-Mar-10 10:15
StarBP6-Mar-10 10:15 
AnswerRe: GDI+ P/Invoke [modified] Pin
DaveyM696-Mar-10 10:21
professionalDaveyM696-Mar-10 10:21 
GeneralRe: GDI+ P/Invoke Pin
StarBP6-Mar-10 10:36
StarBP6-Mar-10 10:36 
GeneralRe: GDI+ P/Invoke Pin
DaveyM696-Mar-10 10:40
professionalDaveyM696-Mar-10 10:40 
GeneralRe: GDI+ P/Invoke Pin
StarBP6-Mar-10 10:50
StarBP6-Mar-10 10:50 
QuestionCreating a web sniffer that will browse and get data from websites Pin
melquiades_is_alive6-Mar-10 8:23
melquiades_is_alive6-Mar-10 8:23 
AnswerRe: Creating a web sniffer that will browse and get data from websites Pin
Luc Pattyn6-Mar-10 8:56
sitebuilderLuc Pattyn6-Mar-10 8:56 
GeneralRe: Creating a web sniffer that will browse and get data from websites Pin
melquiades_is_alive6-Mar-10 9:05
melquiades_is_alive6-Mar-10 9:05 
AnswerRe: Creating a web sniffer that will browse and get data from websites Pin
Luc Pattyn6-Mar-10 9:38
sitebuilderLuc Pattyn6-Mar-10 9:38 
GeneralRe: Creating a web sniffer that will browse and get data from websites Pin
melquiades_is_alive6-Mar-10 9:55
melquiades_is_alive6-Mar-10 9:55 
GeneralRe: Creating a web sniffer that will browse and get data from websites Pin
Luc Pattyn6-Mar-10 10:02
sitebuilderLuc Pattyn6-Mar-10 10:02 
GeneralRe: Creating a web sniffer that will browse and get data from websites Pin
baranils24-May-10 5:07
baranils24-May-10 5:07 
GeneralRe: Creating a web sniffer that will browse and get data from websites Pin
Luc Pattyn24-May-10 5:18
sitebuilderLuc Pattyn24-May-10 5:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.