討論串[問題] 有關String.Readline()
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者vincentwei (迷失)時間20年前 (2005/06/23 11:12), 編輯資訊
0
0
0
內容預覽:
如果你只是要找字串中第一個character為T的話. 我記得裡面有一個是startwith的function..... 這應該是你要的... 至於你說的沒錯.... content.ToUpper().Trim().equals("T"). 當content="T"時, if條件式才會成立....

推噓4(4推 0噓 0→)留言4則,0人參與, 最新作者comput (小抄怎樣做?)時間20年前 (2005/06/22 11:06), 編輯資訊
0
0
0
內容預覽:
StreamReader sr = new StreadReader(inputfile);. String content = sr.ReadLine();. if (content.ToUpper().Trim() == "T"). 這個code是要找這個inputfile裡面開頭是"T"的.
(還有159個字)
首頁
上一頁
1
下一頁
尾頁