FileByteCount
FileByteCount[file]
ファイルのサイズをバイト数で返す.
詳細
- FileByteCount内のファイルは,そのファイルへのパスを文字列あるいはFileオブジェクトとして与えることで指定することができる.
- あるコンピュータシステムから他へ特定のファイルが移動された場合には,FileByteCountが報告するバイト数が変わる場合がある.
- FileByteCountはクラウドオブジェクトにも使うことができる.
例題
すべて開く すべて閉じる例 (1)
スコープ (2)
Fileオブジェクトで指定されたファイルのバイト数を得る:
FileByteCount[File[$InstallationDirectory <> "/Documentation/English/System/ExampleData/ocelot.jpg"]]CloudObjectのバイト数を取得する:
obj = CloudPut[Range[42]]FileByteCount[obj]特性と関係 (1)
FileSizeはFileByteCountと同じバイト数を与える:
FileByteCount[FindFile["ExampleData/ocelot.jpg"]]FileSize[FindFile["ExampleData/ocelot.jpg"]]テクニカルノート
関連するガイド
-
▪
- ファイル操作
履歴
1991 で導入 (2.0) | 2016 で更新 (11.0)
テキスト
Wolfram Research (1991), FileByteCount, Wolfram言語関数, https://reference.wolfram.com/language/ref/FileByteCount.html (2016年に更新).
CMS
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
BibTeX
@misc{reference.wolfram_2026_filebytecount, author="Wolfram Research", title="{FileByteCount}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/FileByteCount.html}", note=[Accessed: 07-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_filebytecount, organization={Wolfram Research}, title={FileByteCount}, year={2016}, url={https://reference.wolfram.com/language/ref/FileByteCount.html}, note=[Accessed: 07-September-2026]}