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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -