Top "File-handling" questions

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

PermissionError: [WinError 32] The process cannot access the file because it is being used by another process

My code is for a script that looks at a folder and deletes images that are under a resolution of 1920…

python python-3.x file-handling
How to read text file by particular line separator character?

Reading a text file using streamreader. using (StreamReader sr = new StreamReader(FileName, Encoding.Default)) { string line = sr.ReadLine(); } I want …

c# .net file-handling
Reading a string from file c++

I'm trying to make billing system for my father's restaurant just for practice. So, I'm facing the problem that I …

c++ string file-handling
What is ios::in|ios::out?

I was reading some project code and I found this,here MembersOfLibrary() is a constructor of class MenberOfLibrary class MembersOfLibrary { …

c++ file-handling
modify existing contents of file in c

int main() { FILE *ft; char ch; ft=fopen("abc.txt","r+"); if(ft==NULL) { printf("can not open target file\…

c edit file-handling
java: how to use bufferedreader to read specific line

Lets say I have a text file called: data.txt (contains 2000 lines) How do I read given specific line from: 500…

java bufferedreader file-handling file-read
Difference between System.getProperty("line.separator"); and "\n" ?

While developing GUI with Java FX , I seem to get different results with System.getProperty("line.separator"); and "\n" during …

java javafx-8 file-handling
Read contents of a file as hex in C

I have a file with hex values saved as hex.txt which has 9d ff d5 3c 06 7c 0a Now …

c hex file-handling
mkdir() is not creating the new directory

I am using Eclipse and jdk1.7. I am making a basic program using file handling, in which an output directory …

java file-handling
How to read from a c++ program till a character is read then skip some characters and continue reading again

How do i read from a file till a particular character is reached and then seek to the next character …

c++ file file-handling