Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
正如标题中明确指出的那样,如何设置特定索引,类似于文本文件中的 eof,以便我可以从那时起编辑文本?如果我有一个文本文件,我想编辑其中一些最后的字符,我是否必须将其内容保存为字符串,编辑字符串,然后将其写回文件?
有关 StandardAdditions 的 AppleScript 字典,其中write和eof被定义。starting at我相信您正在寻找在文本文件中写入位置。请注意,这write starting at将覆盖该位置的现有文本。
write
eof
starting at
write starting at