file tag

99 questions


1 answers
79 views
0
Read a simple text file

You want to simply read a text file from a sample Android application. I'm currently using the code written below.1. InputStream inputStream = openFileInput(test.txt);2. InputStreamReader inputStreamR...

2 years ago

1 answers
91 views
0
[Python 3] When downloading the file, the file name is brought from the content disposition, and it is a problem with broken Korean.

Download the file to Python and get the file name from content disposition to save it.However, the Korean alphabet of the file name is printed in the form of %ㅁ%ㅁ, just like the urlSymbols, numbers, l...

2 years ago

1 answers
95 views
0
I'm looking for a function to erase all the contents in the folder

I'm looking for a function to erase all the contents in the folderI looked it up, but os.rmdir() can only erase empty directories (although I can recursively call and create them myself).I want to kno...


1 answers
58 views
0
I'm a beginner at Python. Help me! (Convert string > list > dictionary > string order)

To find out how many times certain words appear in a string (text file) and to create a program that organizes items in descending order according to the frequency, we wrote the following code: For ex...


1 answers
45 views
0
Cpp and h files in one folder?

I don't know if it's okay to ask questions like this, but I'm asking because I'm curious about which one is mainly used.In a large project, for example, if you create a class A, you create an A.cpp, A...

2 years ago

1 answers
47 views
0
Is there a way to find out the name and path of the running file?

Creating code to recall another script file.Before calling another script, I want to find out the name and path of the script I'm running right now, how do I do it?For example,Invoke script_1.py ->...

2 years ago

1 answers
87 views
0
To read the entire file as a string rather than a list?

My file is LLKKKKKKKKMMMMMMMMNNNNNNNNNNNNNGGGGGGGGGHHHHHHHHHHHHHHHHHHHHEEEEEEEEIt looks like it. If you use the source code below and read it,['LLKKKKKKKKMMMMMMMMNNNNNNNNNNNNN\n', 'GGGGGGGGGHHHHHHHHHH...

2 years ago

1 answers
42 views
0
Implement screen to show saved images if present and register if not input type = file

When creating a member information management screen, If you haven't registered your profile picture, look like above If you have registered your profile picture, I want you to show it like this.The i...

2 years ago

1 answers
104 views
0
Is there a method to combine routes in Java?

Is there a method to combine routes in Java? For example,// to output a/bSystem.out.println(path_join(a,b));// A/b is output. System.out.println(path_join(a,/b);Like this.

2 years ago

1 answers
52 views
0
What is the difference between File.separator and File.pathSeparator?

File class has two strings, separator and path-separator. What's the difference between the two?

2 years ago
« - 9 - »

© 2024 OneMinuteCode. All rights reserved.