StringToStream

StringToStream["string"]

打开一个输入流用来读入字符串.

更多信息

范例

打开所有单元关闭所有单元

基本范例  (1)

将字符串转换到一个流:

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

从流中读取下一个数:

关闭流:

可能存在的问题  (1)

如果字符串包含特殊字符,则 Byte 格式可以返回大于 255 的值:

这些对应于单个字符代码:

关闭流:

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

文本

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

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