tips:revmedia:v4i1a1

QTIPS - Truncating DOS Files

Published ByDateVersionKnowledge LevelKeywords
Sprezzatura Ltd01 MAY 19922.12+EXPERTOSBWRITE

Richard 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)

  • tips/revmedia/v4i1a1.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1