将文件写入sqlite> select * from result;
1537536602|2002:8672:d515::8672:d515|
1537288499|150.135.165.114|
1537536602|2002:8672:d515::8672:d515|
1537288499|150.135.165.114|
sqlite>
sqlite> .schema
CREATE TABLE result (_time STR, 'src_ip' STR, Count INT);
sqlite>
时文件已损坏。
我正在写入的文件在写入之前已保存到光盘。我已经测试过生成/保存的文件很好,只有在写入响应时才可以。
我已经使用多种文件类型(HttpResponse
和text
)进行了测试,并收到相同的问题。
使用excel(excel
)时,Excel修复后即会打开文件。
通过记事本查看内容时文件中的错误是:
System.Threading.ThreadAbortException:线程正在中止。在 System.Threading.Thread.AbortInternal()在 System.Threading.Thread.Abort(Object stateInfo)在 System.Web.HttpResponse.AbortCurrentThread()在 C:\ Use中的SPAM.WEB.Reports.Wrapper.LaunchQuarterlyReportDownload()...
我用来写文件的代码是:
openXML