38 questions
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
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?
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...
Please tell me the code to delete the file/folderI'm using Windows XP
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...
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!
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...
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 ...
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...
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 ...
« | - 3 - | » |
© 2024 OneMinuteCode. All rights reserved.