Unit 'AmigaDOS' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#morphunits]

SetFileSize64

Change the size of a file.

Declaration

Source position: amigados.pas line 2294

function SetFileSize64(

  fh: LongInt;

  Pos: Int64;

  Mode: LongInt

):Int64;

Arguments

fh

  

filehandle

Pos

  

relative size

Mode

  

OFFSET_BEGINNING, OFFSET_CURRENT or OFFSET_END

Function result

New size of the file or -1 in case of an error. IoErr() gives additional information in that case.


Documentation generated on: 2021-07-30