CALL FSIZE
This page was last modified 19:19, 7 August 2021 by Mars2000you. Based on work by Gdx.

Contents

Effect

Returns the size of a file in a variable.

Syntax

CALL FSIZE ("<Device>:\<Path>\<Filename>",<Variable>)

Notes:

  • Character backslash (\) serves as a separator between the folders and the file name in MSX-DOS2. You don't have to put it after the colon of the device name.
  • Character backslash is replaced by the character yen (¥) on Japanese MSX or the character won (₩) on Korean MSX.

Parameters

<Device> is the name for used device. (see table below)

Device type Device name Remark
Disk drive A, B, C, D, E, F, G, H A floppy disk interface can control until 2 drives.
Linked computer COM Requires RS-232C interface


By default, the loading will be made from the current active drive (generally drive A) in the other cases.

<Path> is used to specify the location in folders of file to load. Each folder name in path are separate by a backslash (\). This parameter is only available in version 2 of Disk BASIC.

<Filename> is the name of file whose you want to know the size.

<Variable> must be a numerical variable that will return the file size. It is preferable not to use an integer variable to avoid causing the "Overfow" error with big files.

Example

CALL FSIZE ("B:TEST.TXT",A): PRINT A

Related to

CALL CHGDRV, CALL FILES, CALL LOAD, CALL SAVE

Compatibility

DM-System2 BASIC