Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

C# how can i save the users text input and not just use it for once

Hello im new to the programming world and im trying to make a simple app where the user puts text info and the app show it when its needed so the question is how to save the info that the user is writing and then use it is there a simple way? Im coding on C# sorry for my English And thanks for the time

Answers

  • QuarkQuark Member
    edited August 2021

    I am a newbie too. But I think you can just declare a string variable (say, userInput) and then call it ( i.e. print it on the console) every time you need.

    As in,

    string userInput = Console.ReadLine();

    Console.WriteLine(userInput);

Sign In or Register to comment.