Home > Net >  C # readline
C # readline

Time:09-27

After why the readline assigned to the string STR to null

CodePudding user response:

Only know, don't know why, readline reads input, you did not enter the natural nothing,

CodePudding user response:

reference 1st floor exception92 response:
only know, don't know why such use, readline reads input, natural what all have no, you didn't enter

Writeline input, isn't it

CodePudding user response:

The write is to write
Read read,,
What to read? Read your keyboard input,

CodePudding user response:

WriteLine and ReadLine data

CodePudding user response:

CTRL + F5 to run after and input some things, is not empty,

CodePudding user response:

WriteLine: Output, will display the contents of the Output to the Output device, is to you in the code "1223" Output to the Console, if your program is not the Console, can see this message, in VS the Output through some configuration, can also be Output devices directed to file, database, etc.
ReadLine: input, refers to the standard input device (mouse, keyboard, virtual keyboard, etc.) of the input data, read into the program, for example, if you in the Console program, enter "ABC" + enter, so your application can pass the ReadLine reads to the "ABC",
Input and output is independent of the buffer, so you cannot use the ReadLine reads to WriteLine output data, and, in so doing, there is no meaning, because your program has to know what is the data of WriteLine, why read, directly to the line,

CodePudding user response:

ReadLine is commonly used in the console program..

This is winform get less than you...

CodePudding user response:

Very thank you for the first time what won't be embarrassed in c #

CodePudding user response:

Winform procedure with the Console. ReadLine yo can't do

CodePudding user response:

Build a console you try
  •  Tags:  
  • C#
  • Related