file-io tag

38 questions


1 answers
93 views
0
print >> How to type in a file instead of writing

I write like the code below when I type in the file. I heard that writing >> is a bad way, so which one is a good way?f = open(input.txt, w+)print >> f, hello

2 years ago

1 answers
80 views
0
How do I read files from Jar in Java?

I want to read the XML file located in one of the jar files included in the class path. How do I read the file included in the jar file?

2 years ago

1 answers
88 views
0
To read large files one line at a time

Hello, I'm NEW B who just started PythonI want to read a big file one by one and process itI only know how to read the whole thing and then read it one line at a timeI'd like to know if there's anothe...

2 years ago

1 answers
112 views
0
Delete Files/Folder

Please tell me the code to delete the file/folderI'm using Windows XP

2 years ago

1 answers
97 views
0
How to recursively clear directories in Java

Is there a way to recursively erase the entire directory in Java? Usually, it's possible to erase empty directories. But if there's a file in the directory that you erase, it gets a little hard. How d...


1 answers
121 views
0
Modifying Python Files

Open test.txt in Python and check if there is a line with the letter Hi in the contentIf it exists, please give me an example of changing the line to Do!

2 years ago

1 answers
91 views
0
What is the difference between BufferdReader and Scanner?

As far as I know, the method of reading data based on characters from a file is the Scanner and Buffered Reader methods. We also know that BufferedReader uses buffers to efficiently read files to avoi...


1 answers
135 views
0
I want to know how to read a binary file one by one

I wonder how to read binary files by 1 byte!In the file io I've learned so far, the only way to read one line at a time was to read multiple lines at a timeThen is there a way to read one by one like ...

2 years ago

2 answers
85 views
0
How to copy files securely and quickly

I'm looking for a safe and fast way to copy binary/text filesI wonder what other people write besides what I've found so farPlease let me know if there is a problem with my code#include <iostream&g...

2 years ago

1 answers
99 views
0
Input/output of transcript program files

It's a grade processing program.You want to add file input/output from code created with functions and pointers.In the 'Grades Processing Program.txt' file 1111 Gaga 10099897 2222 Nana 90898887 reach ...

2 years ago
« - 3 - »

© 2024 OneMinuteCode. All rights reserved.