I want to read header of DBF files and then store it in buffer (arrays of chars). I have done this thing already. I have done this as :
FileStream f = new FileStream(filename,FileMode.Open,FileAccess.Read);
BinaryReader br = new BinaryReader(f);
br.BaseStream.Position = 0;
cbufferi = br.ReadChars(1000);
Now cbufferi contains 1000 characters from mentioned DBF file BUT it doesnot contains some intermediate characters which has it's ascii value greater than 127(0x7F).I know that ascii chars have values maximum as 127 but my DBF files contains some special chars having value greater than 127(0x7F). cbufferi simply NEGLECT this kinds of characters while copying. Hence it creates problems while I am trying to retrieve Fields by using formulaes like :
flds[fldx][j] = cbufferi[((i+1)*31) + j];
So is there any other method so that I can able to copy special character (ascii greater than 127) in BUFFER cbufferi ????
Thanks in advance..