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

Смежные вопросы