StreamPosition

StreamPosition[stream]

返回一个整数,该整数指定一个打开的流中当前指针的位置.

更多信息

  • 在大多数计算机系统上,由 StreamPosition 返回的整数以字节为单位给出从该文件开头起始的位置.

范例

基本范例  (1)

打开一个流:

从流对象中读入第一个数:

统计流开始的位置:

关闭流:

Wolfram Research (1991),StreamPosition,Wolfram 语言函数,https://reference.wolfram.com/language/ref/StreamPosition.html.

文本

Wolfram Research (1991),StreamPosition,Wolfram 语言函数,https://reference.wolfram.com/language/ref/StreamPosition.html.

CMS

Wolfram 语言. 1991. "StreamPosition." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/StreamPosition.html.

APA

Wolfram 语言. (1991). StreamPosition. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/StreamPosition.html 年

BibTeX

@misc{reference.wolfram_2024_streamposition, author="Wolfram Research", title="{StreamPosition}", year="1991", howpublished="\url{https://reference.wolfram.com/language/ref/StreamPosition.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_streamposition, organization={Wolfram Research}, title={StreamPosition}, year={1991}, url={https://reference.wolfram.com/language/ref/StreamPosition.html}, note=[Accessed: 22-November-2024 ]}