hi there hope everyone is well.i will try and explain what im trying to do here.i need to get the length of a file and the write that length into the file as an offset value i think lol.anyway this is what i have so far.
i want to write the result to say the yellow part in the hex view of the file like so
but when u write to the file it writes the part on the right hand side of the hex editor view window like this.
so if u can see what im trying to do please help an
d if u need anything else from me i will be glad to do what i can.thanks in advance
Code:
Dim fileDetail As IO.FileInfo
fileDetail = My.Computer.FileSystem.GetFileInfo(GetFileNameFromPath(ofd.FileName) & ".gz")
Dim aLong As Long = (fileDetail.Length)
Dim str As String = (BitConverter.ToString(BitConverter.GetBytes(aLong)))
Dim str1 As String = (str.Replace("-", ""))
Dim str2 As String = (str1.Remove(6, 10))
TextBox1.Text = str2
but when u write to the file it writes the part on the right hand side of the hex editor view window like this.
so if u can see what im trying to do please help an
d if u need anything else from me i will be glad to do what i can.thanks in advance