----------------------------
k01.EXE PROGRAM INFORMATION
----------------------------
K01 is a binary file program for DOS & Windows. It has room
for 7,000 file records and/or around 300,000 file bytes,
depending on how much DOS memory is available. K01 never
turns down a file - it will read in only a section of the
file, if there is not enough room. Its record file lines are
variable up to characters.
K01 is used to upkeep binary files. It has several functions
for this and has a helper program - dls.exe.
For processing, k01 uses two different screens: edit and
browse. These provide for easier editing of the data.
------------------------------------------------------------
DOS Based
-----------
k01 is a DOS based program that runs under Windows 95/98 and
can run in a MS-DOS only environment. Under Windows, it runs
in a DOS window, defined by a PIF (program information file).
-------------------------------------------------------------
..........Operating k01 ............
The Option Table
-----------------------------------------------------------
There is an options table that springs up on the lower
part of k01's main screen. It appears whenever the Enter
key is pressed; its purpose is to make k01 easier to use:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| Input Edit Position Cnvrt to Text Lines move |
| Output Swap Even page Sort recs Max len move |
| Save & exit Delete Search Elim Text String move |
| 1st record Shift rght Line nmbrs Re-format Dir Rpt |
| Last record Shift left Record Len Win Clpbrd ---- |
| Exit Prev edit Info bar Command ---- |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Main Screen Options
---------------------
Key Functions
======== ==============================================================
arrows move screen thru data by paging or scrolling
[ move screen to left
] move screen to right
b defines 1st record of output file
c defines last record of output file
Space turns on/off record numbers on right edge of screen
m moves intervals of lines to region, starting at target line
w moves only lines of given length, or shorter
W moves only lines of given length, or longer
S moves only lines having a given character tring
d deletes intervals of lines
i inputs files, changes current directory
o outputs files, changes current directory
x exits program
e edits into a line
= temporarily displays info line
r searches file area for requested strings or special characters
s swaps character strings in intervals of lines
p positions screen onto page with selected line number
D dos command entry
R re-formats text - changes lengths of file lines
\ squares up screen on an even screen page boundary
/ enters edit on last line edited
F12 enters edit on last line edited
) shifts all info in interval to right
( shifts all info in interval to left
F10 saves defined file into current file path & exits
-------- --------------------------------------------------------------
Special Functions From Main Screen
----------------------------------
Key Function
===== =======================================================
v runs a scan of a disk directory; accepts the directory
and a target, for options; puts scan report into the
file area starting at target line. Accepts '*.*'
type notation, for specific files; puts the directory
list into chronological order.
u sorts an interval of lines; sort options are sub-string
position, and sub-string length. There can be up to
four of these fields, 1st one hightest priority, & so
forth. Then the routine asks to reverse the sort,
for descending order. This option can be used for
un-sorted intervals, also, and can reverse the order
of the records in an interval.
R changes line length of records - takes an interval and
produces a new interval of lines, with different
lengths. Also condenses multiple blanks. Paragraphs
when encounters empty lines.
----- -------------------------------------------------------
The File Input Routine
----------------------
On file input, several things happen. First, the number
of k01 file lines, to be chopped off the front of the file, is
requested. The program will skip these many k01 file lines of
the input file, where a k01 file line is up to 99 characters
of a file record.
Then each record is checked for being text. If so, the record
is kept to be ended where the DOS end-of-rec characters are.
Finally, the file is checked to have been all read in. If
not, including any data skipped by request, a lost data
report box appears on the main screen.
-------------------------------------------------------------
Editing Screen
---------------
Key Functions
======== ===============================================================
arrows moves pseudo cursor up, down, left, right on file lines.
Home moves pseudo cursor to front of line edited.
End moves pseudo cursor to end of line edited.
F12 saves changes in line and exits edit.
Delete puts into delete mode - move pseudo cursor & press Enter key.
Insert puts into insert mode - key in string & press Enter key.
Enter puts into Option Mode:
m merges another line onto edit line at pseudo cursor.
e jumps edit to requested line; doesn't save current chgs.
c chops off line at point of pseudo cursor.
y chops off line, copies chopped off part onto next line.
r inserts, into line, last deleted line section.
Enter saves changes that have been made to line.
x exits edit, does not save changes.
z copies contents of line to other lines.
k copies character string to key memory.
l inserts an empty line after edited line.
Space moves line and its contents to never-never land.
s swaps character strings in line.
g puts edit into mode to accept ansi codes.
-------- ---------------------------------------------------------------
Key Memory
---------------------------------------------------------------------
Several of the keyboard input functions use a memory of previously
keyed in strings. The memory uses the regular cursor movement keys:
Left, Right, Home, End, Backspace. It uses other keys, as well:
Key Function
------- ----------------------------------------
Up scrolls backward thru key memory
Down scrolls forward thru key memory
F5 deletes memory entry & scrolls backward
Enter enters the keyed input
F4 moves scroll to the blank entry
Tab same as Down key
Esc same as Up key
F1 same as Enter key
F2 same as Left key
F3 same as Right key
--------------------------------------------------
Key Memory does not work for key input of line numbers.
If full, no new strings can be added.
Capacity is around 18 entries.
-----------------------------------------------------------------
Main Screen Information Bar
------------------------------
Running clock is on top of the bar.
Left to right, field contents:
File name
File size
First line number in file --> Last line number in file
[ max nmbr of lines X max nmbr of chars/line ]
Program name
------------------------------------------------------
Other Notes
--------------
* An odd message appears during an i/o use, when the first record
of the file is not 1. This is to lessen operator errors.
* Most operations can be stopped by pressing the Enter key.
* You can use the full path name for the file name to over-ride the
current directory in the input and output functions.
* The 3rd parm of the delete option is for where to truncate reocrds.
* k01.exe accepts a file name as an input parameter - it will attempt
to open and read in the file, when executed. K01 can be used for
the default program for text files, under Windows.
* Be carefull with move, it is a tricky function.
---------------------------------------------------
|
|