file tag

99 questions


1 answers
102 views
0
How do I check the file size?

We are working on Python code in the window environment.Depending on the size of the file, I'm working on a different code (such as writing an e-mail if it's over 100 kb)I can do everything else, but ...

2 years ago

1 answers
83 views
0
How to create temporary folders in Java

Is there a standard or a good way to create a temporary directory within a Java application?


1 answers
102 views
0
What is the fastest way to find out the existence of a file in C/C++11/C?

Is there a standard for C++11/C++/C to find out if a file exists or not?I want to check if the file exists before I open it.What should I do to make an annotation part from the code below?inline bool ...

2 years ago

1 answers
94 views
0
I want to find out the file size with C. Help me

I want to know how to find out the size of the file.Before saving the entire file as a string, I want to read it after malloc just the size of the file.I'm using malloc(MAXSIZE*sizeof(char)) together,...

2 years ago

1 answers
45 views
0
How to get only file names without extensions for files in Java

Is there a way to get the file name without an extension?fileNameWithExt = test.xml;fileNameWithOutExt = test;Like this.

2 years ago

1 answers
84 views
0
Question! I'm going to write a list element in the file

You are about to write a list element to a file. For example, #PythonFilemylist = [hello, 3]file = open(myfile.txt, w)file.writelines([%s\n % item for item in mylist])When you run myfile.txthello3Let'...


1 answers
126 views
0
How do I get input to command line as ruby?

How do I get input to command line as ruby?> cat input.txt | myprog.rb> myprog.rb < input.txt> myprog.rb arg1 arg2 arg3 ...I'm going to get stdin like this, but I'd like to know other ways...


1 answers
116 views
0
Java: How to read a text file

You want to read a text file with a space character delimited value. What should I do? And how do you store that read value in an array list?For example, of the text file data .1 62 4 55 5 6 77I'd lik...



1 answers
118 views
0
How do I read text data stored in a file as a string?

I've been using the source code below. And this seems to be at least the most commonly used method on the site I searched for.Is there another better way to read data from a file as a string from Java...

2 years ago
« - 6 - »

© 2024 OneMinuteCode. All rights reserved.