Top "Filehandle" questions

A file handle is an abstract indicator for accessing a file.

Can I find a filename from a filehandle in Perl?

open(my $fh, '>', $path) || die $!; my_sub($fh); Can my_sub() somehow extrapolate $path from $fh?

perl filenames filehandle
Why does Image.FromFile keep a file handle open sometimes?

I am doing a lot of image processing in GDI+ in .NET in an ASP.NET application. I frequently find …

gdi+ filehandle
Send file handle as argument in perl

Is it possible to send a file handle as an argument to a subroutine in PERL? If yes, can you …

perl filehandle
How can I process a multi line string one line at a time in perl with use strict in place?

I'm trying to figure out the proper PBP approved way to process a multi line string one line at a …

perl string multiline filehandle
copying the contents of a binary file

I am designing an image decoder and as a first step I tried to just copy the using c. i.…

c filehandle copying
How can I suppress STDOUT temporarily in a Perl program?

Is there any easy way to tell perl "now ignore everything that is printed"? I have to call a procedure …

perl filehandle
Is there a way to access a string as a filehandle in php?

I'm on a server where I'm limited to PHP 5.2.6 which means str_getcsv is not available to me. I'm using, …

php csv filehandle
How can I use __DATA__ twice?

How can I use __DATA__ twice? #!/usr/local/bin/perl use warnings; use 5.012; while ( <DATA> ) { print; } while ( <…

perl filehandle
Python What's type for open(file)

I want to use isinstance built-in function to judge the type of open(file). How to do that? Thanks! :D

python python-2.7 filehandle isinstance
Delphi - finding the process that is accessing a file from my program

I have a Delphi app that regularly writes to a local disk file. Occasionally it is unable to access the …

delphi process wmi delphi-2006 filehandle