In perl we use <FileDescriptor>
to read data line by ilne from a file. How to do the same using ant script.
相关问题
- Lazily Reading a File in D
- DirectoryStream.Filter example for listing files t
- Replacing or recreating a file in Windows 8 RT kee
- Reliability of file locking on network files
- How can I have my ant task pass or fail based on t
相关文章
- How to replace file-access references for a module
- Why is file_get_contents faster than memcache_get?
- Transactionally writing files in Node.js
- Passing command line arguments to Java via ant bui
- Getting the cluster size of a hard drive (through
- ANT - Could not load a dependent class com/jcraft/
- library resolve to a path with no project.properti
- Example for file read/write with NSFileHandle
Try This it should be work.....
You can do that using the
loadfile
task in combination with thefor
task from ant-contrib (you will have to download and install ant-contrib).Just had to do that myself, actually the for + line.separator solution is flawed because :
Here is another (better) solution based on the previous example :
The example using tokens did not work for me. In my scenario I was looking to simply print a README file while retaining the blank lines. Here is what I did.