fileinputstream tag

7 questions


1 answers
85 views
0
End and content of string received via fgets

The fgets() function stores the results in the string and adds a null character (\0) to the end of the string.That's what IBM explains.I'm going to compare the string I received through the fgets() fu...

2 years ago

2 answers
135 views
0
strlen and string

I wonder why David921 read from the file through the strlen function has a length of 9.When reading the same David921 length through gets, the length is 8 so I wonder why this difference occurs.


1 answers
123 views
0
After initializing the c language string, I wrote down the tap in more detail when I input/output the rest of the file.

int main(void){int c, i;//Implement as a link list FILE *cities, *members, *reser;// departure city, member list, reservation list char ID[20];char PW[20];char *ID_B;char *PW_B; char *NEW_ID; char *NE...

2 years ago

2 answers
149 views
0
I have a question for JAVA.

package Ex;import java.io.*;public class fre { public static void main(String[] args) throws IOException { FileInputStream fi = null; InputStreamReader in = null;// fi = newFileInputStream (fileEx.t...


1 answers
122 views
0
Access by line when inputting and outputting files

As far as I know, if you use fseek, it moves in bytes, but can't you read it in rows?Currently, we are processing it arbitrarily through fgets.I'm saving five lines of information.

2 years ago

1 answers
131 views
0
The role of Buffer in java.io.FileInputStream

int bytesAvailable; FileInputStream fileInputStream = new FileInputStream(new File(somewhere)); bytesAvailable = fileInputStream.available(); int maxBufferSize = 100; int bufferSize = Math.min(bytesAv...


1 answers
74 views
0
C++ File Input/Output Open Character Question

The getline() function also receives open characters, but when I execute the code, it just comes out connected I don't know why In test.txt,test1test2test3It's in here#include<iostream>#include&...

2 years ago

© 2024 OneMinuteCode. All rights reserved.