Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <bitset>
- #include <C:\Users\pol\Documents\Visual Studio 2010\Projects\Hello World\boost\utility\binary.hpp>
- using namespace std;
- int main(){
- unsigned short bin = BOOST_BINARY(0111 0001);
- ifstream b; b.open("C:\\Users\\pol\\Desktop\\test.exe", ios::binary | ios::out | ios::ate);
- if(b.is_open()){cout << "File Opened.";}else{cout << "Failed to open file.";}
- //b.seekg(0, ios::end);
- int endByte = b.tellg();
- printf("\nFile is %i bytes long.", int(b.tellg())); //Tells us position of stream.
- char* p = "";
- cin >> p ;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement