看板
[ C_Sharp ]
討論串[問題] 文字檔特定行數修改問題
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
不是用String.Replace()方法嗎? 用法如下:. string str = "Hello, John";. string str2 = str.Replace("John", "David"). 類似這樣的, 有錯請再查MSDN中裡詳細的語法.. --. ================
(還有7個字)
內容預覽:
考慮一下用正規取代 只要一行. ex:. ..... ..... using System.Text.RegularExpressions;. ..... ..... string before = "這是測試行 xxxx = \"oooo\" zzzz 後面接雜七雜八";. string afte
(還有74個字)
首頁
上一頁
1
下一頁
尾頁