View Single Post
Old 10-10-2001, 08:43 AM  
Rod
Confirmed User
 
Join Date: Apr 2001
Location: MTL, QC, CAN
Posts: 1,243
Anyone knows how to make a perl script read 1 line in a file?

Ok
I want to make a script that reads only the first line of a text file. The name of the text file is data.txt

Does any of you, programmers, knows how to do it?

The script is written in perl.

Thanks,
Steve

Rod is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote