file-io tag

38 questions


1 answers
65 views
0
c Language file input/output question. It's a function to find the width of the circumference by printing coordinates, but the width of the circumference doesn't come out

//You receive a bundle of two coordinate values from a file to construct a rectangle//Create a program that calculates the width and circumference of each and outputs it to the screen //1. Receive the...

2 years ago

1 answers
113 views
0
To import and sort Python text files into a list

Hong Gil-dong Computer 72Yi Sun-shin Electronics 50a heterogeneous computer 80When the data in the file is like this, The data structure is made of classes with names, departments, and creditsYou want...


1 answers
105 views
0
How to open multiple files using with open

You are creating a program that opens and modifies multiple files at once.with I want to open several files per line using the sentence, but it doesn't work because I write it like the code below I wa...

2 years ago

1 answers
107 views
0
I'd like to remove only the middle part of the file name

There are so many files such as report_final_1.** and report_final_2.**I'm going to change it all to Report 1.***.I used os.path.split, but it doesn't work as I thought

2 years ago

1 answers
111 views
0
I'm Python New B. How do I write str type in a file?

apples = 'Hello World!'text_file = open(Output.txt, w)text_file.write(message :, mystr)text_file.close()In the print function, print(message:, mystr) was separated by commas, but it didn't work in wri...


2 answers
119 views
0
What should I do when there is an error because there is no file when opening fopen in read format?

I'm doing my assignment. I want to start after I retrieve the data and variables that I had before I started. So we start fopen in read format first, then we move on to the menu window. But the proble...

2 years ago

1 answers
78 views
0
cOutput language typed strings to a text file

#include <stdio.h>int main(void){ char sts[50]; int cnt; FILE* foc = NULL; errno_t err; err = fopen_s(&foc, save.txt, wt); if (err == 0) { printf(save.txt file created\n); printf(1. Enter ...

2 years ago

1 answers
115 views
0
Ask how to use a string read from a file as an if statement

I'm going to write a code that separates the string I received from the txt file into if statements.Yes)This is how you create a variable and store the input string. char VecFun[10]; fpInput = fopen(i...

2 years ago
« - 4 -

© 2024 OneMinuteCode. All rights reserved.