# SIZE
> [HTML Version](size_sbr.htm)
_Reviewed May 2026_
**xcall SIZE, fspec, count \{,flags\}**
SIZE returns the size of the specified file in bytes.
**Parameters**
_fspec_ ([String](string.htm.md)) \[in\]
is specification of the file (in DevPPN or native format).
_count_ (Signed [Num](num.htm.md)) \[out\]
returns the number of bytes. If the file does not exist, -1 is returned. A return value of 0 indicates that the file exists but contains no data.
_flags_ ([Num](num.htm.md)) \[in\]
specifies what to return in the _count_ parameter:
| **Value** | **Data Returned** |
|------|------|
| 0 (default) | Number of bytes in file |
| 1 | Number of lines in (text) file |
| 2 | Number of non-blank lines in (text) file |
**History**
2015 December, A-Shell 6.3.1501: Add _flags_. Prior to this update, the routine only returned the number of bytes in the file, as if _flags_=0.
2015 January, A-Shell 6.1.1400: Routine now supports files larger than 2GB when the returned parameter is any F type. Previously, it only avoided the 2GB limit for F,6.