c# - How to read .lbl file -
i want read .lbl
file , store data database column. so, whenever user wants modify it, may create new .lbl
file database.
i have converted .lbl
data binary using snippet shown below:
byte[] filebytes = file.readallbytes("d:\\work\\pns\\test.lbl"); stringbuilder sb = new stringbuilder(); foreach (byte b in filebytes) { sb.append(convert.tostring(b, 2).padleft(8, '0')); string bindata = sb.tostring(); // store variable value in database column } file.writealltext("d:\\work\\pns\\testnew.lbl", sb.tostring());
but, when open new file error this
unable open label, file or folder not accessible, not exist, or opened user. try opening label 'read-only' flag set!
kindly me figure out problem
Comments
Post a Comment