A file handle is an abstract indicator for accessing a file. It is retrieved after successfully opening the file using the file name. Afterwards the file handle is used instead of the file name for all file operations.
Questions tagged [filehandle]
407 questions
-1
votes
1 answer
How much data will FileManager file save?
I am using FileManager in Ios to create dir and save my log files in it.. When I get String data that I what I am appending it to the file that I have in FileManager dir .. Can i know How much data that I can append and also What happens If it that…

tp2376
- 690
- 1
- 7
- 23
-1
votes
1 answer
Unable to open a filehandle in a Proc::Daemon::Init'd script in perl
I have a perl script which i am running in daemon mode with the following code.
Proc::Daemon::Init()
# Anonymous subroutine.
my $sub = sub {
# Call to the function which opens the filehandle
my $content = RandomPackage::GetContent({…

aman
- 365
- 3
- 13
-1
votes
1 answer
Perl read subsection inside open file handle
I have open a file using:
open (FH, "<".$File::Find::name) or die "cannot open file \"".$File::Find::name." \"!";
while () {
...my code...
}
I parse the lines using Regular expressions to get the data I want.
Now I want to read a subsection…

Laurent Zotto
- 37
- 1
- 7
-1
votes
1 answer
Why does perl allow reading in real time from a process filehandle if I print $_?
I'm writing a perl program that captures the output of another program, and I noticed that in a while loop (so $_ contains the line read), the following occurs:
open XIN, "-|", "test_xsr"; # not getting in real time! FIX
while ()…

Nonny Moose
- 121
- 1
- 7
-1
votes
4 answers
Get unique elements after parsing a column from a file in python
I am working with Python 3.6. I have a tsv file which consists of 5 columns and > 100k of rows. I have used the split function to parse the file by the delimiter from which I receive specific columns with indices. The column which I am working on…

Srk
- 69
- 2
- 8
-1
votes
1 answer
Post large amount of data into a website using Python 2.7
I'm new to Python and I'm currently working on solving problems to improve my coding skills. There is a webpage where I need to post data like Name, Language (this a drop down list), Phone number and Feedback. My idea here is to automate this…

sdgd
- 723
- 1
- 17
- 38
-1
votes
1 answer
Loading Variable from a file
AT
4
5
6
7
#include
#include
#include
using namespace std;
int main()
{
int data[4], a, b, c, d, e, f;
ifstream myfile;
myfile.open("tera.txt");
for (int i = 0; i < 4; i++)
{
myfile…

Shani Mughal
- 105
- 13
-1
votes
1 answer
How to close all file handles on the file and delete it, which is being copied and given to printer for printing job
I have a C# application in which i am sending sending some string variable to my local printer. So what i wanted to do is, i want to delete a particular file from folder which is
copied to the folder prior to my print command.
Its like this.. Copy…

Stacy Kebler
- 180
- 1
- 3
- 22
-1
votes
1 answer
read single line from text file in objective-C
I want to read a text file in Objective-C till a specified delimiter
For eg:if this is my .txt input file ,
@abc = name1$
@xyz = name2$
i want to read abc and assign it in the string variable key,and read name1 till $ and assign it to variable…

suse
- 10,503
- 23
- 79
- 113
-1
votes
1 answer
In a Windows DLL, how can I get a handle for the file which is already opened by the current process?
When my plugin DLL is loaded into the host application's address space, I need to write some data into a file. The problem is that at that point of time this file is already opened by the host process with exclusive write access, and my call to…

Gart
- 2,297
- 1
- 28
- 36
-2
votes
1 answer
fstream just wont create file
Hi I'm trying to use a fstream file handle doing following:
write to file
read from file
create file(if not existing)
the problem:
For some reason I am not able to make it creating the file.
filepath= name +…

asdf
- 1,475
- 1
- 9
- 11
-2
votes
1 answer
Perl,Move file handle in main and subroutine
The propose of the script to grep some value from some data table in the ASCII files.
I modified the
script which I posted yesterday.
Now it barely works. I wonder if it is the proper way to move a file handle in this way.
The usage is still the…

seedof
- 11
- 3
-2
votes
1 answer
fprintf doesn't write anything
I have this code:
105 void draw_detections(char * image_file_name, image im, int num, float thresh, box *boxes, float **probs, char **names, image *labels, int classes)
106 {
107 int i;
108 FILE * fptr;
109 char filename[100];
110 …

Mona Jalal
- 34,860
- 64
- 239
- 408
-2
votes
2 answers
Comparing 2 txt files in Python
I have 2 txt files.
File A:
jack john jim
george colin stan
File B:
hell jack john jim goad tiger
tall jack jim john filer dom
hell george colin jim stab tiger
track jack george colin stan forever
I want that each line of file A is checked with…

Sb92
- 23
- 6
-3
votes
3 answers
learning Python the hard way argv and file
I am learning python from past weeks
from sys import argv
script,filename = argv
print "We're delete the file %r" %filename
print "If you want to stop ctrl+c (^c)"
print "Please hit enter to continue"
raw_input(">_")
print "Opening file..."
filen…

root
- 43
- 1
- 6