Skip to content

About string

yokzu

Asked May 31, 2011, 4:16 AM EDT1 answer
Share
LinkedInX
hello,
I just wanna curious about how can I write more string easily in code. For example I wanna add these strings to "str" variable.
--------------------------

The demo project is a simple console application demonstrating the use of SshStream and Scp classes. It asks the user for the hostname, username and password for a remote SSH server and shows examples of a simple SSH session, and file transfers to/from a remote SSH machine.

Here is a screen shot of an SSH connection to a Linux shell:

-------------------------

so I want to add these strings to "str".


String str = ""    ---> but there are lots of line in there.(maybe 10) Is there easy way to add these?

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    I just found the solution. Sorry guys.

    str = @"asd asda sd a";
    0