Out of id card read device reads the text, based on GB 13000 UCS - 2 format for storage of
With the following code to read out
Would be buf [1024].
FILE * f=_wfopen (L "wz. TXT," L "rb");
If (f)//file open success
{
Memo1 - & gt; Text="";
While (fgetws (buf, 1024, f))
{
Memo1 - & gt; Lines - & gt; Add (buf);
}
The fclose (f);
}
After read out, Memo1 - & gt; Text results length is differ, everyone can't intercept id number, what should I do?
The text is as follows:
Project length (bytes)
30 Chinese characters name
Gender code 2
National code 4
Born 16 (date) (month) (year) : YYYYMMDD
Address 70 Chinese characters and Numbers
Citizenship number 36 number
Issuing authority 30 characters
The period of validity start date (date) (month) (year) : 16 YYYYMMDD
Validity of the deadline date of 16: YYYYMMDD
Valid for long-term storage "long-term"
Each address 70 bytes, 70 (the latest address up to 4 blocks, namely 280 bytes) of Chinese characters and Numbers