Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
以下のコード行を使用してGroovyでXMLファイルを読み取ろうとしています
def xml=new XmlSlurper().parse("C:\2011XmlLog20110524_0623") xml.Document.BillID.each{ println it}
Cドライブにファイルがありますが、ファイルが見つかりませんというエラーが発生します。構文に誤りはありますか?..
よろしくお願いします。
ラクシュミ
次のいずれかを使用します。
"C:/2011XmlLog20110524_0623"
"C:\\2011XmlLog20110524_0623"
バックスラッシュはエスケープ文字です。