Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Writing to Filehandle

Reply
Thread Tools

Writing to Filehandle

 
 
Diana
Guest
Posts: n/a
 
      01-11-2005
Hi,
I am writing to a file print like print <filehandle> "some stuff"
I want to get the row and col in number where the filehandle has written,
is it possible to get the values? , another how can I force fully move the
position of curser so that it writes on/from row,col I want
thanks
D
 
Reply With Quote
 
 
 
 
Tad McClellan
Guest
Posts: n/a
 
      01-11-2005
Diana <> wrote:

> I want to get the row and col in number where the filehandle has written,



There are no rows and columns in a file, just a stream of bytes.


> is it possible to get the values? ,



You can get the byte position of the file pointer with:

perldoc -f tell


> another how can I force fully move the
> position of curser so that it writes on/from row,col I want



You can set the position of the file pointer with:

perldoc -f seek


--
Tad McClellan SGML consulting
Perl programming
Fort Worth, Texas
 
Reply With Quote
 
 
 
Reply

Thread Tools

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem Commenting within Filehandle Iteration Wijaya Edward Python 1 10-26-2006 08:18 AM
key as filehandle error Bill Perl 2 09-01-2004 12:22 PM
$v = shift OR$_[0] on a filehandle, whats teh difereence Eduard W. Lohmann Perl 1 12-02-2003 06:30 PM
Behaviour of filehandle.readlines() for images on Windows Jorge Godoy Python 2 10-14-2003 08:35 PM
HELP! using filehandle.get("filename") writes to file when it reads!? Christopher Reeve C++ 1 09-14-2003 08:18 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57