function readStream(n, skip) {
    var res = stream.substr(0, n);
    stream = stream.substr(n + skip);
    return res;
  }
/** Reads 'n' symbols from the stream and skips next 'skip' symbols. */
Reads 'n' symbols from the stream and skips next 'skip' symbols.
Reads ' n ' symbols from the stream and skips next ' skip ' symbols .
function readStream(n, skip) {
    var res = stream.substr(0, n);
    stream = stream.substr(n + skip);
    return res;
  }
function readStream ( n , skip ) { var res = stream . substr ( 0 , n ) ; stream = stream . substr ( n + skip ) ; return res ; }
Reads 'n' symbols from the stream and skips next 'skip' symbols.
Reads ' n ' symbols from the stream and skips next ' skip ' symbols .