U++ framework
Do not panic. Ask here before giving up.

Home » Community » Newbie corner » Writing hexadecimal to files
Re: Writing hexadecimal to files [message #32531 is a reply to message #32527] Tue, 24 May 2011 01:51 Go to previous messageGo to previous message
nlneilson is currently offline  nlneilson
Messages: 644
Registered: January 2010
Location: U.S. California. Mojave &...
Contributor
Something similar to this but not with hex was transferring a considerable amount of data through a socket without sending a line at a time was basically removing the '\0' and adding the text of the next line and \n then another line and \n.
When a set of lines were done then add \0.

Worked great that way once I got it figured out.

Without doing it that way a Sleep(10) was needed between each line so the data would not get scrambled or out of order.

I wrote code to create the string a character at a time and if the char was '\0' (ascii null char(0)) then discard it.

Does the Upp str.Cat work in a similar way to remove the '\0'?

And is the length always required as in your example "11"?

Counting the hex characters is 11 so shouldn't it be 12 including the \0 rather than 11 or am I missing something?

I thought all strings ended with a \0 character.

[Updated on: Tue, 24 May 2011 02:20]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: dll example errors when trying
Next Topic: How to reference value of an item on a layout?
Goto Forum:
  


Current Time: Wed Apr 29 11:20:50 GMT+2 2026

Total time taken to generate the page: 0.00570 seconds