The problem is what if the algorithm says to get x bytes from file y but file y has less than x bytes. How would you know when reconstructing the original files that there were less than x bytes from...
Type: Posts; User: Norm
The problem is what if the algorithm says to get x bytes from file y but file y has less than x bytes. How would you know when reconstructing the original files that there were less than x bytes from...
Here's the code I just used to verify my post:
Random rand1 = new Random(12345);
int[] rands1 = new int[30];
for(int i=0; i < rands1.length; i++)
rands1[i] =...
The control field would be the first n bytes of the output file. n to be fixed at a later point in the design.
The data to go into the control field:
number of files (a byte allows 255)
random...
So the mixing is at the byte level not the line level. What about padding if the files are of different length?
Are there a fixed number of files or can you write a control field into the output...
Is that like shuffling a deck of cards: mixing lines from one file with lines from other files.
The text for each line is unchanged.
Is the program supposed to be able to unscramble the file...