2010-12-15 52 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