12 questions
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...
txt=[Ghost vegetable\n, i\'m Groot\n]Suppose you enter line=input() #Ghost vegetables\n.if(line==txt[0]): print(This string is the same sentence.)I thought that if you type in input(), the görme\n, it...
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.
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...
I want to convert the java.io.InputStream object to String. If InputStream contains textual data, I think we can change it to StringWhat do I do? p.s. Please let me know the simplest way to do it in t...
String exampleString = example;If I have a code like this, how do I put it in InputStream??
I wrote InputStream to read text line by line from Android Asset Folder.If I use Buffered Reader, I can use readLine(), so I want to change InputStream to Buffered ReaderWhat should I do?InputStream i...
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...
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.
- 1 - | » |
© 2024 OneMinuteCode. All rights reserved.