I have a text file of this structure:
Nice text, text
More texts and words
Many more sentences
….
Just a bunch of text lines. Now I need to compress the file so that the structure of the file stays the same. Thats is if I read the first line of the compressed file. It should return jumbled/compressed but only of the first line of the original text which is
“ Nice text, text ”
Thats is the compressed file shoud look like this:
;₽73!:228sj
3773!;
Jd7:
To put it shortly: the compeessor should not touch the newline chars in any way!
Is there such an option in any of the zip/tar/rar archivators?
I do not think anything standard would have such function because compressors are created to work with files, not to inspect files internals. You may write sample program to do this feeding as chunks lines. But consider the fact compressor may produce (as compressed text) new line character. How you will distinguish this from standard newlines?