OK! But I don't still understand this:
1. I don't know the number of the lines ( I know only its dimesion with instructions below)
ifile.seekg (0, ios::end);
size = ifile.tellg();
ifile.seekg (0, ios::end);
size = ifile.tellg();
To copy to clipboard, switch view to plain text mode
So I cannot allocate space. Instead I know maximum lenght (dimension) of one line. So I can allocate the size for string line.
Then, I have to sort only line by line (not the words inside a line and then line by line)
2. After that, in your opinion, can I use
memblock = new char [size];
ifile.read (memblock, size);
memblock = new char [size];
ifile.read (memblock, size);
To copy to clipboard, switch view to plain text mode
to do all work ( I still understand it'll more speed) ??
Bookmarks