我正在编写 Java 中的脚本,它将:

  • 去网站

  • 从Excel工作表(地址)中提取数据

  • 输入地址

  • 单击搜索按钮并在网站上的两个单独字段中获取输出数据 .

  • print out the output data in two columns of existing excel file (if not possible, then at least NEW txt file separated with "|" )

  • 对于所提到的excel表中的所有行,从点2-5重复处理 .

问题出在第5点 . 我不确定如何编辑现有的Excel文件 . 或者相应地逐行创建新文件和打印数据的命令是什么 .