file-io tag

38 questions


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

1 answers
101 views
0
Reads text files, organizes them in descending or ascending order, and outputs them back to the file

9 Kim Cheol-soo 72 10 Park Jae-yong 79 1 Na Young-hee 34 3 Lee Nayeon 46 I read the text file (class number, name, grade) in this way and based on the class number,After organizing them in descending ...

2 years ago

1 answers
112 views
0
I'm working on a code to input and output files on Python, but I don't know where I got it wrong crying

`python>inputfile=open(ALE.txt,r)outputfile=open(ALE2.txt,w)list1=[]for line in inputfile:Team,Won,Lost=line.split(',')Won=int(Won)Lost=int(Lost)Percentage=round((Won)/(Won+Lost),3)list1.append([Perce...

2 years ago

1 answers
53 views
0
Receive an integer input until an opening character is found in C

Enter space and save it in an integer array until you get a line character in C languageI want to print them out in order. The maximum number of integers to be entered is not more than 100.)Enter 5 6 ...

2 years ago

1 answers
120 views
0
Java is trying to add text to a file that already exists

Java is trying to add text to a file that already exists What should I do?

2 years ago

1 answers
54 views
0
File IO from Ruby

You want to read the file from the DB and save it in the .txt file.Please tell me how to type in the file in Ruby

2 years ago

1 answers
136 views
0
Please tell me how to read plain text files in Java

Java seems to have a variety of ways to read and write data in a file.I want to read ASCII data from the file. Please explain what are the methods and what are the differences between them.

2 years ago

1 answers
110 views
0
Fastest way to write binary files

You need to write about 80GB of data on an SSD.My code is about 20MB/s when I turned it on Windows 7 and Visual 2010As far as I know, file transfer between SSDs is possible from 150 to 200 MB, so I th...

2 years ago

1 answers
76 views
0
Replace a String within a Text File

We are now solving the problem of replacing a string in a text file by taking it over the command line, and the first and last searched string should be output as a specific string other than the one ...

2 years ago
« - 2 - »

© 2024 OneMinuteCode. All rights reserved.