using System.Collections.Generic; using System.IO; using NPOI.XWPF.UserModel; using UnityEngine; public class SeeWordContent : MonoBehaviour { void Start() { FileStream file = new FileStream("C://Users/PC/Desktop/shuju.docx", FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.ReadWrite,64); XWPFDocument word = new XWPFDocument(file); foreach (XWPFParagraph paragraph in word.Paragraphs) { string message = paragraph.ParagraphText;//»ñÈ¡¶ÎÂäÄÚÈÝ Debug.Log(message); } file.Close(); } }