Tham khảo tài liệu 'manual programming experience handbook part 87', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | PHP Code using System using using System. Text Created by SharpDevelop. NetDevelop Co. Ltd. Author Tuan Anh Nguyen Ngoc Date 11 21 2006 Contact Information. - Email email email - Handheld 84 905 202 088 namespace public class File summary define string fullpath. summary private string _sFullPath summary Contruction of this class. summary public File summary Contruction of this class. summary param name _pfullpath The string fullpath. param public File string _pfullpath set fullpath. _pfullpath summary Get Set fullpath string of file. summary public string FullPath return fullpath. get return set fullpath. set value summary Get file content. summary returns return file content as string. returns private string FileContent define string result. string _sResult check file path. throw exception if is null or empty. if null throw exception. throw new Exception Can not get content The file is not define or decl are. else check file exists throw exception if it isn t exist. if . F this. F ullPath Create filestream with filemode open and fileaccess read. FileStream _oFileStream new FileStream pen Create byte array. Byte _oByte new byte 1024 Create UTF8Encoding. UTF8Encoding _oUTF8Encoding new UTF8Encoding while filestream read byte 0. while _oByte 0 0 _sResult _oByte else throw exception. throw new Exception Can not get content The file can not be found. return result. return _sResult summary Get file content. orverload fileContent method. summary param name _pfullpath The fullpath string. param returns return file content as string. returns public string FileContent string _pfullpath set fullpath. _pfullpath call fileContent method return result. return FileContent dauden UDS JAVASCRIPT Toàn tập bài 1 Bài 1 TỔNG .