This is a discussion on how to open and read data files with Perl within the Perl forums, part of the Software Development category; Hi, how to open and read data files with Perl Thanks sivaraman,...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hi, how to open and read data files with Perl Thanks sivaraman, |
|
#2
| |||
| |||
| hi, you may use this... code #!/usr/bin/perl -wT open(DLFILE, './sample.txt') || Error('open', 'file'); @fileholder = <DLFILE>; close (DLFILE) || Error ('close', 'file'); print "Content-Disposition:attachment;filename=$ID\n\n"; print @fileholder |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| cannot open pdf files in windows application using vb .net 2008 | arjkhanna | C# Programming | 2 | 05-25-2009 10:28 PM |
| How do I read command-line arguments with Perl? | leoraja8 | Perl | 3 | 11-26-2007 05:43 AM |
| How do I read data from a pipeline in perl? | sivaramakrishnan | Perl | 1 | 08-11-2007 12:45 AM |
| How do I read command-line arguments with Perl? | sivaramakrishnan | Perl | 1 | 07-23-2007 03:50 AM |
| How to read data from excel files in webload? | devarajan.v | Software Testing | 0 | 07-16-2007 03:07 AM |
Our Partners |