stream tag

23 questions


1 answers
112 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
122 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
67 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
« - 3 -

© 2024 OneMinuteCode. All rights reserved.