FileByteCount
✖
FileByteCount
Details

- The file in FileByteCount can be specified by giving the path to the file as a string or a File object.
- If a particular file is moved from one computer system to another, the number of bytes in the file as reported by FileByteCount may change.
- FileByteCount also works with cloud objects.
Examples
open allclose allBasic Examples (1)Summary of the most common use cases
Scope (1)Survey of the scope of standard use cases
Get the number of bytes in the file specified by the File object:
In[1]:=1

✖
https://wolfram.com/xid/0b0kmo76nyq-bzvdwh
Out[1]=1

Properties & Relations (1)Properties of the function, and connections to other functions
FileSize gives the same number of bytes as FileByteCount:
In[1]:=1

✖
https://wolfram.com/xid/0b0kmo76nyq-d56t5b
Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0b0kmo76nyq-g6ibcx
Out[2]=2

Wolfram Research (1991), FileByteCount, Wolfram Language function, https://reference.wolfram.com/language/ref/FileByteCount.html (updated 2016).
✖
Wolfram Research (1991), FileByteCount, Wolfram Language function, https://reference.wolfram.com/language/ref/FileByteCount.html (updated 2016).
Text
Wolfram Research (1991), FileByteCount, Wolfram Language function, https://reference.wolfram.com/language/ref/FileByteCount.html (updated 2016).
✖
Wolfram Research (1991), FileByteCount, Wolfram Language function, https://reference.wolfram.com/language/ref/FileByteCount.html (updated 2016).
CMS
Wolfram Language. 1991. "FileByteCount." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2016. https://reference.wolfram.com/language/ref/FileByteCount.html.
✖
Wolfram Language. 1991. "FileByteCount." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2016. https://reference.wolfram.com/language/ref/FileByteCount.html.
APA
Wolfram Language. (1991). FileByteCount. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FileByteCount.html
✖
Wolfram Language. (1991). FileByteCount. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FileByteCount.html
BibTeX
✖
@misc{reference.wolfram_2025_filebytecount, author="Wolfram Research", title="{FileByteCount}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/FileByteCount.html}", note=[Accessed: 25-May-2025
]}
BibLaTeX
✖
@online{reference.wolfram_2025_filebytecount, organization={Wolfram Research}, title={FileByteCount}, year={2016}, url={https://reference.wolfram.com/language/ref/FileByteCount.html}, note=[Accessed: 25-May-2025
]}