Top "File-handling" questions

file-handling is an abstraction of common actions such as creating, opening, closing, reading, updating, writing, comparing and deleting files

How to check whether ifstream is end of file in C++

I need to read all blocks of one large file(about 10GB) sequentially, the file contains many floats with a …

c++ ifstream file-handling line-endings seekg
How to write to a file in WebContent directory from a class in WEB-INF/classes directory

I have a Java Class UpdateStats in WEB-INF/Classes directory of a dynamic web application.This class has a function …

java jakarta-ee tomcat file-handling web-inf
Why is my iOS app not showing up in other apps' "Open in" dialog?

I am trying to implement the registering process that allows my iOS app to show up in the "Open in" …

ios file-handling uti launch-services
Return value of assignment operation in Java

I encountered a statement in Java while ((line = reader.readLine()) != null) { out.append(line); } How do assignment operations return a …

java expression file-handling assignment-operator
Read File line by line to variable and loop

I have a phone.txt like: 09236235965 09236238566 09238434444 09202645965 09236284567 09236235965 ..and so on.. How can I process this data line by line in C++ …

c++ file-handling file-io
Create a file descriptor

I want to create a file descriptor in C whose value i will specify in code. I have a integer …

c file-descriptor file-handling fdopen
flush() java file handling

What is the exact use of flush()? What is the difference between stream and buffer? Why do we need buffer?

java file-handling
How feof() works in C

Does feof() checks for eof for the current position of filepointer or checks for the position next to current filepointer? …

c file-handling feof
How can I use file_put_contents() with FILE_APPEND | LOCK_EX safety?

I'm using: file_put_contents("peopleList.txt", $person, FILE_APPEND | LOCK_EX); to write to the end of a file …

php writing file-handling
Reading assets or raw or resource files as a File object in Android

I have a jar file for which i need to pass file object. How can i pass resource or assets …

android file-handling android-resources