#include<bits/stdc++.h>
#include <fstream>
#include <vector>
using namespace std;
int main()
{
vector<unsigned char> bytes;
ifstream file1("C:\\Users\\Tarequzzaman\\Desktop\\decoded.bin", ios_base::in | ios_base::binary);
unsigned char ch = file1.get();
while (file1.good())
{
bytes.push_back(ch);
ch = file1.get();
}
size_t size = bytes.size();
cout << size << endl;
return 0;
}
#include <fstream>
#include <vector>
using namespace std;
int main()
{
vector<unsigned char> bytes;
ifstream file1("C:\\Users\\Tarequzzaman\\Desktop\\decoded.bin", ios_base::in | ios_base::binary);
unsigned char ch = file1.get();
while (file1.good())
{
bytes.push_back(ch);
ch = file1.get();
}
size_t size = bytes.size();
cout << size << endl;
return 0;
}
No comments:
Post a Comment