2010-12-15 92 views

回答

1

是的,先;讀取文件內容。

// Specify file. 
FileStream file = new FileStream(Server.MapPath("~\\files\\test.rtf"), FileMode.OpenOrCreate, FileAccess.Read); 
StreamReader sr = new StreamReader(file); 

// Read contents of file into a string 
string cval = sr.ReadToEnd(); 

// Second; Set Content property of HTMLEditor. 
htmlEditor.Content = cval; 

// Close StreamReader 
sr.Close(); 

// Close file 
file.Close(); 
+0

Ahmed thanxx求助 – 2010-12-15 19:11:40

+0

> 9當我轉換它是顯示我這種類型的數據可以幫助我認爲空間編碼在這種類型的ascii – 2010-12-15 19:13:47

+0

當我轉換?轉換是什麼意思? – Ahmed 2010-12-15 19:17:24