File size: Difference between revisions

Content added Content deleted
Line 106: Line 106:


=={{header|Action!}}==
=={{header|Action!}}==
===DOS 2.5===
DOS 2.5 returns file size in number of sectors. It is required to read the whole file to calculate its size in bytes.
DOS 2.5 returns file size in number of sectors. It is required to read the whole file to calculate its size in bytes.
{{libheader|Action! Tool Kit}}
{{libheader|Action! Tool Kit}}
Line 165: Line 166:
Size of "D:INPUT.TXT" is 1274 bytes
Size of "D:INPUT.TXT" is 1274 bytes
</pre>
</pre>
===Sparta DOS X===

The '''Sparta DOS X''' system stores the size of the file in the directory. The readout of the values is performed with the XIO 39 operation. In the ICAX3, ICAX4, ICAX5 registers values are returned in 24-byte format. Calculation according to the formula: ICAX3 + ICAX4 * 256 + ICAX5 * 65536.
The '''Sparta DOS X''' system stores the size of the file in the directory. The readout of the values is performed with the XIO 39 operation. In the ICAX3, ICAX4, ICAX5 registers values are returned in 24-byte format. Calculation according to the formula: ICAX3 + ICAX4 * 256 + ICAX5 * 65536.
{{libheader|Action! Tool Kit}}
{{libheader|Action! Tool Kit}}