展开全部
在一个文档中定位到第一个空行,62616964757a686964616fe78988e69d8331333365643534读取其后的所有文本 get.msg
get.msg
{
con
text
# The message always begins after the first full line break
msg
close(con)
return(paste(msg, collapse = "\n"))
}
报错:
Error in seq.default(which(text == "")[1]+1, length(text), 1) :
'from' cannot be NA, NaN or infinite 展开 示例文档:
From 12a1mailbot1@web.de Thu Aug 22 13:17:22 2002
Return-Path: <12a1mailbot1@web.de>
Delivered-To: zzzz@localhost.spamassassin.taint.org
Received: from localhost (localhost [127.0.0.1])
by phobos.labs.spamassassin.taint.org (Postfix) with ESMTP id 136B943C32
for ; Thu, 22 Aug 2002 08:17:21 -0400 (EDT)
ype>