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 (permalink)  
Old 07-20-2007, 09: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
Sponsored Links
  #2 (permalink)  
Old 07-23-2007, 02: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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reading IPTC data from Nikon camera RAW images,JPEG,TIFF files using Adobe dll in C# oxygen C# Programming 1 02-28-2008 11:33 PM
How do I read command-line arguments with Perl? leoraja8 Perl 3 11-26-2007 06:43 AM
How do I read data from a pipeline in perl? sivaramakrishnan Perl 1 08-11-2007 01:45 AM
How do I read command-line arguments with Perl? sivaramakrishnan Perl 1 07-23-2007 04:50 AM
How to read data from excel files in webload? devarajan.v Software Testing 0 07-16-2007 04:07 AM


All times are GMT -7. The time now is 01:15 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0