IT Community - Software Programming, Web Development and Technical Support

how to open and read data files with Perl

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,...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > Perl

Register FAQ Members List Calendar Mark Forums Read
  #1  
Old 07-20-2007, 08:43 AM
sivaramakrishnan sivaramakrishnan is offline
D-Web Programmer
 
Join Date: Feb 2007
Posts: 74
sivaramakrishnan is on a distinguished road
Post how to open and read data files with Perl

Hi,

how to open and read data files with Perl

Thanks
sivaraman,
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 07-23-2007, 01:02 AM
raj raj is offline
D-Web Programmer
 
Join Date: Jul 2007
Posts: 89
raj is on a distinguished road
Default Re: how to open and read data files with Perl

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
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

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


All times are GMT -7. The time now is 12:27 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.
Our Partners
Stamford Dentist | Euro Millions Lottery | Tech Support Services

SEO by vBSEO 3.0.0