File-handling Questions
Ad
How to change an integer inside a file without coping the file to another
I'm making a program for school where i have to create a function for making exams and another one to get the exam. i did the part to create the
Reading input from command line, separated by whitespace, into array of objects
I am experimenting with reading input from command line and successfully store them in objects attributes. example of input
Implementing the cp command using read/write system calls
I am trying to implement the cp command only using read/write system calls. here is my code:
How to check if a file is closed?
Please help me with a code that checks if a file is opened and closes it. i tried the code below and it is not working. i just need python to
Python script to deduplicate lines in multiple files
I have a large number of .txt files, each of which contains a list of urls. within each file there are duplicate urls. there is no duplication
write from one file to another
takes secret_msg and path as parameters opens the file mentioned in the path in a+ mode writes the
How to copy an image from androids apk package folder to another folder from android device
So i want to copy an image from my android apk package folder to another folder inside that package after installing the application in android
how to read a file of combination of numbers and save saving each combination into a new file name?
I have a combination file with certain combination numbers like: (133, 134), (133, 100), (133, 438), (133, 414), (133, 35), (133, 130),
JavaScript rearange when file handeling
I'm trying to read an object from a json file and use it in the rest of the code. for that, i used "fs" with node.js. but it seems that
Copy matching filenames(pdf) from directory and a column in excel to a new directory in Python
Compare files(pdf) in directory with list of names which are provided as a column in an excel csv and only keep those files in the directory which
Ad
How to print set list to new lines in text file python 3
Basically i want to make a program where it reads a text file, does something with the info, and then outputs the different info into a file.
File Handling: A new file is created even after using append
So, i am trying to create a file in my internal storage, but the following code always make a new file and only stores the most recent string in
Python- Joining the list items in a text file
I have a text file in which i wrote a list. now i want to join all the list items in that text file. here is the screenshot of the contents of
TypeError:a bytes-like object is required, not 'str' when reading from a file
I am trying to use the dataset from file to implement my project in ml authors_file_handler = open(authors_file, "r") authors =
How to pick pdf file from document , store it in SQLite and again open it from SQLite?
I want to pick .pdf file from mobile internal storage , save this file in sqlite as blob type. when i click on 'view' button then retrieve it from
Error in fromJSON("employee.json") : not all data was parsed (0 chars were parsed out of a total of 13 chars)
I was trying to read the json file from my r studio as a purpose of learning how to read json file, but suddenly i got an parsing error.
Vowels are not found correctly showing unusuall results
I am trying to get vowels and consonants separately and save them into "vowels.txt" and
How to make txt file opened up after data have been written to it?
Import java.io.*; import java.util.arraylist; import java.util.stringtokenizer; public class outputtofile { public static void
why is my search function for file handling(.txt file) not working?
I want to search the structure (and print other details of book) i have added for the book for a particular issuenumber entered by user in the
This piece of code is giving segmentation fault
Why is this code giving segmentation fault after printf("9\n"). basically the code crashes as soon as the while loop starts. can
Writing even integers up to n in a file in c, putw() function error
I'm writing a program that will output all even integers up to 100 in a text file. here's the whole code:
Ad
To mimic sort command of linux, to sort lines of a text file
Sort command of linux must sort the lines of a text file and transfer the output to another file. but my code gives a runtime error. please
Problem with scanf/gets in C file handling
Whenever i run this code, final scanf function to get 'email' input does not execute and i get 'updated successfully!' message directly! i tried
bash: reading list of values from variable in file
Status quo i have an external properties file, where a couple of variables are stored. one of these has a list of values
Does BufferedWriter's write(String S) method actually buffer?
As per the java se 8 documentation,
Strange behavior of file creating in java
I have this code here to create a file if not exist and write to it.its behavior is strange.it creates it onetime and doesn't the other,no matter
Python Read String from File with Strange Encoding
I made a pig latin translator that takes input from the user, translates it, and returns it. i want to add the ability to input a text file to
Ad
Blog Categories
Ad