QTIPS - Standardising Error Message Display
QTIPS - Truncating DOS Files
QTIPS - Command Line Options
QTIPS - Invalid Code and Command
QTIPS - Code/Command Help
Utility Diskette # 4
QTIPS - DOS File Names
DOS Interfacing (Part II)
VERBatim - V116
@ATTACK - @Pri.File
@ATTACK - @Rollout.File
File Variables
How Indexes Are Updated
Index Record Layouts
QTIPS - File Variable of File In SELECT Statement
QTIPS - Amending non-Attached Files
LINEAR HASH FILE STRUCTURES - Part 1
Index Flush
QTIPS - File Handle Structure
Reader's Clinic - Page Marks in Windows

RevMedia FKB

DocumentV4I1A1
TitleQTIPS - Truncating DOS Files
KeywordsOSBWRITE
TextRichard Guise informs us of an interesting use for the OSBWRITE command It
seems that if you want to truncate a file at a fixed length the easiest way
is to OSBWRITE a null onto the character position to truncate at Thus if a
file were 10 MB in length and only the first 5 MB were required one would

OSBWRITE "" on File_Var at 5120000


(Volume 4 Issue 1 Page 4)
[revmedia/copyrigh.htm]

Page last modified: 08/02/03