How to preserve the value contains by char * pointer Programming Software Development by asifjavaid …,16); printf("%s",hexData);---------------------//output is 243C4 writeinFile(hexData,fptr); } writeinFile(char* str, FILE *fptr) { printf("%s",hexData… Re: How to preserve the value contains by char * pointer Programming Software Development by kux …,16); printf("%s",hexData);---------------------//output is 243C4 writeinFile(hexData,fptr); } writeinFile(char* str, FILE *fptr) { printf("%s",hexData… Re: VB text files Hyphen & comma delimited Programming Software Development by ShahanDev … as new TextBox() With {.Text="B"} Public Sub WriteInFile() Dim sw as new System.IO.StreamWriter("C:\abc… System.Object, ByVal e As System.EventArgs) Handles MyBase.Load WriteInFile() End Sub [/CODE] Re: How to preserve the value contains by char * pointer Programming Software Development by ArkM Alas, you write itoa result to nowhere. Just before itoa call YOU say: my hexData pointer points to NOWHERE (NULL is this NOWHERE). You must pass a real memory pointer to itoa. Declare a char array or allocate memory chunk by new operator. Or (better) reread your C or C++ textbook...