1
我試圖寫一個數字值到線,像這樣...的WriteLine拋「輸入字符串的不正確的格式」
try
{
sw.WriteLine("Element {0} {1} {2} {3} {4} {5} {6} (7} {8}",
"a",
"b",
"c",
"d",
"e",
"f",
"g",
"h",
"i");
}
catch (Exception ex)
{
string mystring = ex.ToString();
}
,卻得到了「輸入字符串不在正確的格式「爲我的麻煩例外。 Streamwriter對象存在並且在此之前執行許多其他寫入操作時有效。 (在充足的時間內,我會用更有用的東西來替換「a」等);
任何人都可以看到什麼是錯的?
的呻吟聲。近視的規則。謝謝你提供的,spakinz。 –