Hey people,

Im trying hard to do mostly exact what is described above. Just that I need to receive binary data too. The gets function suppresses \n. The source of cat I read but its somehow difficult, it uses safe_read() ?. The classic read(pipe,buf,length) reads the keyboard input but ignores the myprog<<test.txt stuff.

What Im trying to do is to write a base 36 (de)coder. That means A-Z, 0-9 to 0-255(binary). Im doing it for long "numbers" e.g. 512 chars of Text to 331 bytes (which is the integer length!).
base36tobin<<testtext.txt>>testtext.bin or bintobase36<<testtext.bin>>test.txt

Thanks to all repliers,
regards Reen