     dest_len[9] = 1;
     dest_len[10] = 10;
 
-
     thrust::device_vector<unsigned int> ind_cnt(1); //fields count
     ind_cnt[0] = 10;
 

    thrust::device_vector<char> dev(fileSize);
    fclose(f);
	
	HANDLE file = CreateFileA("lineitem.tbl", GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL | FILE_FLAG_SEQUENTIAL_SCAN, NULL);
    assert(file != INVALID_HANDLE_VALUE);	
	
    HANDLE fileMapping = CreateFileMapping(file, NULL, PAGE_READONLY, 0, 0, NULL);
    assert(fileMapping != INVALID_HANDLE_VALUE);
 
    LPVOID fileMapView = MapViewOfFile(fileMapping, FILE_MAP_READ, 0, 0, 0);
    auto fileMapViewChar = (const char*)fileMapView;
    assert(fileMapView != NULL);
	
    thrust::copy(fileMapViewChar, fileMapViewChar+fileSize, dev.begin());

    auto cnt = thrust::count(dev.begin(), dev.end(), '\n');
    std::cout << "There are " << cnt << " total lines in a file" << std::endl;

    thrust::device_vector<int> dev_pos(cnt+1);

#include <windows.h>
#else
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/mman.h>
#endif

int main() {

