[英]How to generate the multiple xml file using java. Like click on to submit button each time, it should create seperate xml file
當我單擊提交按鈕的示例時,它應生成xmlFile1.xml。 然后再次單擊提交按鈕,它應該生成xmlFile2.xml。,,, xmlFine4,5,6.xml
您必須檢查目錄中已經存在哪些文件,然后根據該文件創建新名稱。
如果要列出現有文件,可以使用以下方法:
java.io.File.listFiles()
在您的目錄上。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.