能有人給我介紹瞭如何在這個順序讀取文本文件:讀取C文件,並找到子串
Line of text here
number1(startposition)
number2(endposition)
Line of text here
number1(startposition)
number2(endposition)
Line of text here
number1(startposition)
number2(endposition)
,然後用數字1作爲指定startPosition和NUMBER2爲找到文本行的子endposition並將子字符串複製到新字符串中。
他們可能可以,但堆棧溢出的工作方式是,當你嘗試某些東西,然後在遇到磚牆時詢問具體問題。 – John3136