home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR8 / 2READ.ZIP / READ.TXT < prev    next >
Text File  |  1993-07-27  |  8KB  |  138 lines

  1.     ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
  2.     █                                                                 │
  3.     █                ▐▐▐▐▐▐                       ▐▐▐                 │██
  4.     █                 ▐▐  ▐▐                       ▐▐                 │██
  5.     █                 ▐▐  ▐▐   ▐▐▐▐    ▐▐▐▐        ▐▐                 │██
  6.     █                 ▐▐▐▐▐   ▐▐  ▐▐      ▐▐    ▐▐▐▐▐                 │██
  7.     █                 ▐▐ ▐▐   ▐▐▐▐▐▐   ▐▐▐▐▐   ▐▐  ▐▐                 │██
  8.     █                 ▐▐  ▐▐  ▐▐      ▐▐  ▐▐   ▐▐  ▐▐                 │██
  9.     █                ▐▐▐  ▐▐   ▐▐▐▐    ▐▐▐ ▐▐   ▐▐▐ ▐▐                │██
  10.     █                                                                 │██
  11.     █                    Tue  07-27-1993  13:51:00                    │██
  12.     █                                                                 │██
  13.     █                John De Palma on CompuServe 76076,571            │██
  14.     ▀─────────────────────────────────────────────────────────────────┘██
  15.       ███████████████████████████████████████████████████████████████████
  16.  
  17.                               ╒════════════╕
  18.                               │  READ.COM  │
  19.                               ╘════════════╛
  20.  
  21.      What's that you say? Who needs another "text file loader?" Who
  22.      needs a small, simple minded executable program that will load an
  23.      ASCII file and pop it up on the screen allowing you to scroll up
  24.      and down from beginning to end and then exit with a touch of the
  25.      {Esc} key? Who needs that in the era of Windows, multitasking,
  26.      Pentium chips, and dialog boxes. Well partner, we ALL do!
  27.  
  28.      Many times all you want to do is use a low memory program to look
  29.      at a file -OR- display a text file IN YOUR BATCH FILE.
  30.  
  31.      This second reason is my reason. I make batch files for myself and
  32.      for the office. Six months later we both wonder what these batch
  33.      files were supposed to do. The people at the office don't even
  34.      bother to wonder, as the normal help file are usually terse "ECHO"
  35.      line statements telling them to do something that they don't
  36.      understand.
  37.  
  38.      READ.COM is a 8K QuickBASIC 4.5 program. It is NOT a true *.COM
  39.      file but I left that extension as it appears too small in size to
  40.      be a QuickBASIC 4.5 executable file. Indeed and in truth if you
  41.      complied the code inside the QuickBASIC environment, this little
  42.      honey would be 45K in size!
  43.  
  44.      The reduction in compiled size is from compiling with Crescent
  45.      Software's PDQ Library and then squeezing that file down with
  46.      EXE2COM.EXE (removes header space and changes the name to *.COM;
  47.      from PDQ) and then LZEXE.EXE (from Fabrice Bellard, a Freeware
  48.      program from France). So, unlike most of my stuff, I did NOT
  49.      include the source code as it is PDQ modified QuickBASIC code.
  50.      However if any of you junior propeller hat wearers want to see how
  51.      this is done, just E-Mail me and I will upload to you the plain
  52.      vanilla QuickBASIC 4.5 code.
  53.  
  54.      The source code outline is taken from one of my two favorite BASIC
  55.      authors, John Clark Craig's book, "Microsoft Quickbasic
  56.      Programmer's Toolbox, ISBN 1-55615-127-6, Microsoft Press, 1988."
  57.      The rest of the hard stuff from my other BASIC guru, Ethan Winer of
  58.      Crescent Software fame. Me? I just provided the "glue" to the code.
  59.  
  60.      If you ran GO.BAT when you unarchived this file set, you are
  61.      reading this INSIDE that batch file. You will know that you are
  62.      still inside a batch file as when you press {Esc}, this text file
  63.      will unload, the BATCH FILE will beep and LOAD a second text file.
  64.      When you read then exit that second batch file, you will note my
  65.      "Brag box" pops up to tell you I am the proud papa of this little
  66.      simple son of a code.
  67.  
  68.      READ.COM only accepts two parameters on the command line.
  69.  
  70.                  READ       {FileName.Ext}      /n
  71.  
  72.                                               
  73.                READ.COM        File Name      No Brag box switch
  74.  
  75.     ╒╤═══════════════════════════════════════════════════════════════╤╕
  76.     ││  IF YOU READ NOTHING ELSE, READ THE PARAGRAPHS IN THIS BOX    ││
  77.     │╘═══════════════════════════════════════════════════════════════╛│
  78.     │                                                                 │
  79.     │ If the text file is NOT in the same directory that you execute  │
  80.     │ READ.COM from, you MUST enter the full path and FileName of the │
  81.     │ text file or you will get a beep and as very terse help message │
  82.     │ to do just that.                                                │
  83.     │                                                                 │
  84.     │ Entering a LONG file name as: "E:\QB45\TOOLBOX\README.TXT,"     │
  85.     │ the first line display will read "E:\README.TXT" as the code    │
  86.     │ parses and truncates the full path name so it can be displayed  │
  87.     │ in fifteen (15) characters on line one.                         │                                  │
  88.     │                                                                 │
  89.     │ READ.COM will display in text mode (Screen 0) any true ASCII    │
  90.     │ file up to two-thousand (2,000) lines! That translates using    │
  91.     │ five (5) characters as the average word plus space length as    │
  92.     │ thirty-two thousand (32,000) words. If the file is larger, all  │
  93.     │ you will see is 2,000 lines.                                    │
  94.     │                                                                 │
  95.     │ If you enter a name of a file that doesn't exist, a zero length │
  96.     │ file will be created and you will be staring at an empty file.  │
  97.     │                                                                 │
  98.     ╘═════════════════════════════════════════════════════════════════╛
  99.  
  100.      Since I know many of you out there are like me and though you make
  101.      like your new toy, you eventually try to test it to its limits,
  102.      often times breaking it and then throwing it away..
  103.  
  104.      So, go ahead, load an executable (*.COM, *.EXE, *.DLL, etc) file
  105.      with this little gem... Surprise surprise, no lock up, no beep, no
  106.      nothing... Just the first line or two of that file up to the place
  107.      where the program sees an "End Of File" marker. This is a friendly,
  108.      simple fella of a program.
  109.  
  110.      I made it to insert Help files into my batch files as it allows
  111.      scrolling, is small and fast and in plain ole vanilla QuickBASIC.
  112.      Let me know if you feel the same.
  113.  
  114.        ┌──────────────────┬──────────────────┬────────────────────┐
  115.        ├───────────      │    THE AUTHOR    │       ────────────┤
  116.        └──────────────────┴──────────────────┴────────────────────┘
  117.  
  118.      John De Palma likes computers because he sees them as big toys.
  119.      Computers to him are complicated black boxes that have infinite
  120.      possibilities for causing to the user --at the same time --
  121.      enjoyment and pain. Unlike most computer users he really doesn't
  122.      like to use the computer to do anything important (like write a
  123.      letter to PC Magazine or to your IRS agent) but to tinker with.
  124.  
  125.      He was one of those kids that took his Dad's watch apart to see how
  126.      it worked, but never figured out how to put it back together again
  127.      (boy was THAT a lesson in "leaving things alone!"). You can usually
  128.      find him on CompuServe --somewhere-- uploading some fairly useless
  129.      program that other "kids" like and download.
  130.  
  131.      He would welcome any thoughts, comments, criticisms, spelling
  132.      corrections, or QUICK BASIC  code  that is under-standable  by an
  133.      ordinary  mortal. He looks forward to receiving any kind of
  134.      reader's mail.  He can be reached by dialing CompuServe's E-Mail
  135.      service and leaving a message there.
  136.  
  137.      His CompuServe number is:  76076,571.
  138.