Search:

Type: Posts; User: Norm

Search: Search took 0.24 seconds.

  1. Replies
    9
    Views
    1,784

    Re: Java File IO question :confused:

    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...
  2. Replies
    9
    Views
    1,784

    Re: Java File IO question :confused:

    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] =...
  3. Replies
    9
    Views
    1,784

    Re: Java File IO question :confused:

    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...
  4. Replies
    9
    Views
    1,784

    Re: Java File IO question :confused:

    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...
  5. Replies
    9
    Views
    1,784

    Re: Java File IO question :confused:

    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...
Results 1 to 5 of 5