由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - how to open pipe files in java
相关主题
how to use JAVA to created named pipe under windows?问个run java file 的问题
Re: how to upload a local file to web server? 请问java property file的问题
How to append something on a file?File generated by Java cannot be read by Android App
How to write a file to the same directory of the class file?Servlet question: the orig filename
编程新人求助—死循环了[转载] create gif/png image in C or java
[转载] 如何用Fortran 或者c, java读excel文件?servlet programming 怪问题
what is $1.class file in Java?ask a question about C
Exception in thread "main" java.lang.NoClassDefFoundError急问如何append double 数据到txt文件
相关话题的讨论汇总
话题: java话题: filename话题: run话题: so话题: pipe
进入Java版参与讨论
1 (共1页)
z****n
发帖数: 28
1
Sorry for this question, but I do appreciate your answer if you can tell me on
this board or to my mailbox.
Under unix
cat filename | ./run
Inside run script, there is the Java file that takes filename as the input. So
how does Java read the filename in the java code?
m******t
发帖数: 2416
2

on
So
When you do "cat filename | ./run", it is the content of the file, instead of
the file name itself, that is fed to ./run, through standard input, ./run
will not be able to see the name of the file.

【在 z****n 的大作中提到】
: Sorry for this question, but I do appreciate your answer if you can tell me on
: this board or to my mailbox.
: Under unix
: cat filename | ./run
: Inside run script, there is the Java file that takes filename as the input. So
: how does Java read the filename in the java code?

1 (共1页)
进入Java版参与讨论
相关主题
急问如何append double 数据到txt文件编程新人求助—死循环了
问一个design的傻问题[转载] 如何用Fortran 或者c, java读excel文件?
InputStream.read() 被block的问题(陷入无限等待)what is $1.class file in Java?
Servlet如何Stream mp3文件?Exception in thread "main" java.lang.NoClassDefFoundError
how to use JAVA to created named pipe under windows?问个run java file 的问题
Re: how to upload a local file to web server? 请问java property file的问题
How to append something on a file?File generated by Java cannot be read by Android App
How to write a file to the same directory of the class file?Servlet question: the orig filename
相关话题的讨论汇总
话题: java话题: filename话题: run话题: so话题: pipe