Page 1 of 1
write my data on a file
Posted: Fri Oct 09, 2015 1:02 pm
by hrc1365
how do i write any data to card? which command or class do it?
in javacard api pdf i read, by file system class can write data, but do not fine it.
pls help me.

Re: write my data on a file
Posted: Fri Oct 09, 2015 11:52 pm
by UNKNwYSHSA
Look the ISOApplet, the filesystem implementation and related commands are all in it.
Re: write my data on a file
Posted: Sat Oct 10, 2015 9:29 am
by hrc1365
thanks a lot my friend.
But ISOapplet have a error when i want to install to card.error is 6985 or some times 6438.
and it's size is large, 39 kB.
do i have any way for save my data to card?????????
Re: write my data on a file
Posted: Mon Oct 12, 2015 2:06 am
by UNKNwYSHSA
hrc1365 wrote:thanks a lot my friend.
But ISOapplet have a error when i want to install to card.error is 6985 or some times 6438.
and it's size is large, 39 kB.
do i have any way for save my data to card?????????
The ISOApplet has four type of data structure:
1 ElementaryFileTransparent;
2 ElementaryFileLinearFixed;
3 ElementaryFileLinearVariable;
4 ElementaryFileCyclicFixed;
Maybe you need one or two, not all.
Coding for your needs:
1 Reserve the data structure your need, others can be removed.
2 Reserve code in IsoApplet.java for your need, delete unused codes.