protected void Button_get_Click(object sender, EventArgs e)
{
string FullFileName = @"F:\111.txt";
string MyText = "", ch;
int a = 0;
//以打开,只读的方式创建文件流MyFile
FileStream MyFile = new FileStream(FullFileName, FileMode.Open, FileAccess.Read);
a = MyFile.ReadByte();
while (a != -1)
{
ch = ((char)a).ToString();
MyText = MyText + ch;
a = MyFile.ReadByte();
}
TextBox1.Text = MyText;
MyFile.Close();
}
æ¯ä¸ªä¸æç±ä¸¤ä¸ªå串符ææã
读åå串符çæ¶åï¼å 转æ¢ä¸ºasciiç ï¼å¦æ转æ¢å¼å¤§äº127ï¼é£ä¹è¿ä¸ªå串符æ¯ä¸æï¼é£ä¹å°±æå两个å串符ã
æ¯è¾èï¼è½ç»ä»£ç ä¹ï¼æ¿ç»é«åã
追çæåªæ¯ä½¿ç¨autolispï¼å¨lispéé¢ï¼å°±æ¯è¿æ ·åæå串符çä¸æãä¸å¤ä»ä¹ç¨åºï¼æè·¯æ¯ç¸éçã