![]() |
|
Help with duplicate values - Printable Version +- LCKB (https://lckb.dev/forum) +-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109) +--- Forum: Programmers Gateway (https://lckb.dev/forum/forumdisplay.php?fid=196) +---- Forum: Coders Talk (https://lckb.dev/forum/forumdisplay.php?fid=192) +---- Thread: Help with duplicate values (/showthread.php?tid=1989) |
- soryjero - 06-07-2013 i am programming a tool, but when i try to save in a file, i have a strange error, because i only want to save a value, but in the file appear two values. first time in INT32 format and then in Byte format. Here is some screens: Original file 2 and when i save in file 2 1E 00 00 00 is the length of the next phrase and i dont know why in save file appears duplicate first byte of length. if you need some more information, you only have to ask me for it i hope you can help me thanks in advance - soryjero - 06-07-2013 i have found my problem, but atm i dont know how to solve it. the problem is : Dim aux as String dr.write(String) when i save a string with this setence in a file, before the string save automatically lenght of string. how could i do to save it without length or save the length that is save automatically in INT32 format instead of Byte format? - soryjero - 06-07-2013 #solved i have got bytes and then convert to string by encoding.utf8 to load file and to save the same but from the end to the begining. get bytes from string and then encoding.utf8 to save file |