M
Milk
HI,
i try to read my HEX file, but i dunno why i just can read the first one in
my file ?
anyone can help me?
My code:
char c[5000000];
char d[5000000];
int main()
{
ifstream ifs;
ifs.open("opcode.txt",ios::binary);
if (ifs)
{
ifs >> c;
if
{
cout<< c <<endl;
}
else
{
cout <<"no file"<<endl;
}
~ Let us linux ~
i try to read my HEX file, but i dunno why i just can read the first one in
my file ?
anyone can help me?
My code:
char c[5000000];
char d[5000000];
int main()
{
ifstream ifs;
ifs.open("opcode.txt",ios::binary);
if (ifs)
{
ifs >> c;
if
{
cout<< c <<endl;
}
else
{
cout <<"no file"<<endl;
}
~ Let us linux ~