xHarbour Reference Documentation > Function Reference |
UUEncodes a file.
HB_UUEncodeFile( <cFilename>, <cUUEFile> ) --> NIL
The return value is always NIL.
HB_UUEncodeFile() reads an entire file, UUEncodes it, and writes the encoded data into a second file.
See also: | HB_UUDecode(), HB_UUDecodeFile(), HB_UUEncode() |
Category: | Encoding/Decoding , xHarbour extensions |
Source: | tip\encoding\UUEncode.c |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
// The example outlines UUEncoding and decoding of files. // A PRG file is encoded in a second file which is decoded into // a third file. The contents of the original and third file are // identical. PROCEDURE Main LOCAL cFileIn := "HB_UUEncode.prg" LOCAL cFileOut := "HB_UUEncode.prg.uue" HB_UUEncodeFile( cFileIn, cFileOut ) HB_UUDecodeFile( cFileOut, "Test.txt" ) ? Memoread( cFileIn ) == MemoRead( "Test.txt" ) // Result: .T. RETURN
http://www.xHarbour.com