[英]Reading file from remote server using groovy
I am trying to read a specific entry in a file on a remote Linux server, I have no idea how to do it, i searched around and below is what i am trying but it doesnt work and throwing exceptions 我正在尝试读取远程Linux服务器上文件中的特定条目,我不知道该怎么做,我在周围搜索,下面是我正在尝试的内容,但它不起作用并引发异常
Below is the exception i get , Can some one also confirm if the above code is OK? 以下是我得到的例外,有人可以确认上面的代码是否还可以吗?
latest.groovy: 50: expecting EOF, found 'in' @ line 50, column 17.
DataInputStream in = new DataInputStream(io)
^
1 error
in
is a keyword in groovy. in
是groovy中的关键字。
Change the variable name to something else... 将变量名更改为其他名称...
Maybe dataInputStream
? 也许dataInputStream
?
You can find a list of the keywords here http://docs.groovy-lang.org/latest/html/documentation/#_keywords 您可以在此处找到关键字列表, 网址为http://docs.groovy-lang.org/latest/html/documentation/#_keywords
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.