home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1993 #2 / Image.iso / clipper / snip0693.zip / FILEOUT.DOC < prev    next >
Text File  |  1993-03-13  |  2KB  |  74 lines

  1.                      READ THIS CAREFULLY!
  2.  
  3. The following three messages comprise a complete set.  The first
  4. two program files that can be compiled with Clipper 5.01 to
  5. create two EXEs.
  6.  
  7.     FILEOUT.PRG --> FILEOUT.EXE
  8.  
  9. This program converts a DOS file to a HEX dump file that can be
  10. used by FILEIN.PRG to recreate the original file, byte for byte.
  11. It will allow you to take an OBJ or EXE or COM (or ANY file for
  12. that matter) and create a HEX dump file suitable for use by the
  13. FILEIN program.
  14.  
  15. The purpose is to allow you to, for instance, transfer an OBJ
  16. file to anyone over any e-mail system.
  17.  
  18.  
  19.     FILEIN.PRG --> FILEIN.EXE
  20.  
  21. This program is the counter part of the FILEOUT program.  It reads
  22. the HEX dump file created by FILEOUT and builds the original file
  23. intact.
  24.  
  25. Both of these programs can be cut and compiled as-is and both will
  26. compile cleanly and with no warnings.
  27.  
  28.  
  29. ___
  30.  
  31. The third message is an example file that can be used as soon as you
  32. have it converted and the FILEIN.EXE program built.  It is a simple
  33. OBJ file that contains a single function from my library:
  34.  
  35.    FUNCTION: _Cap_First( cCap_Str ) --> cString
  36.  
  37.  PARAMETERS: cCap_Str : string to capitalize
  38.  
  39. DESCRIPTION: _Cap_First() will capitalize each first letter that
  40.              follows a space.
  41.  
  42.     EXAMPLE: cString1 = 'now is the time for all good men'
  43.              cString2 = _Cap_First(cString1)
  44.  
  45.              Result: cString2 = 'Now Is The Time For All Good Men'
  46.  
  47.  
  48.  
  49. To build it, cut the HEX dump file to a file of it's own.  Call it
  50. CAPFIRST.HEX (or whatever you like).
  51.  
  52. Then run the FILEIN.EXE program on it:
  53.  
  54.     FILEIN CAPFIRST.HEX CAPFIRST.OBJ
  55.  
  56. The resulting CAPFIRST.OBJ can be linked with any Clipper 5.01
  57. application without modification.
  58.  
  59.  
  60. You can use the FILEOUT program to create HEX dumps of your own.
  61. In my example, I used:
  62.  
  63.     FILEOUT CAPFIRST.OBJ CAPFIRST.HEX
  64.  
  65. The resulting .HEX file is what you see in this third message.
  66.  
  67. Good luck.  I welcome all comments: even if only to say how
  68. weird I must be!
  69.  
  70.  
  71.  
  72. Kirby L. Wallace
  73.  
  74.