#include #include #include #include using namespace Arc; int main(int argc, char** argv) { #define DESIRED_SIZE 512 if (argc != 2) { std::cerr<<"Usage: partial_copy filename"<SetSecure(false); // GridFTP servers generally do not have encrypted data channel FileInfo info; if(!handle->Stat(info)) { std::cerr<<"Failed Stat"<GetSize(); if(fsize == (unsigned long long int)-1) { std::cerr<<"file size is not available"< DESIRED_SIZE) { handle->Range(fsize-DESIRED_SIZE,fsize-1); }; DataBuffer buffer; if(!handle->StartReading(buffer)) { std::cerr<<"Failed to start reading"<StopReading(); return 0; }