Results 1 to 4 of 4

Thread: [RESOLVED] Console data

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2005
    Posts
    120

    Resolved [RESOLVED] Console data

    how can i save console data which is shown in console application?

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: Console data

    The same way you save any data in any application. Are you talking about using a database, a file of some type, the registry, something else?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jun 2005
    Posts
    120

    Re: Console data

    i just want to save data in text file..

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: Console data

    You would write to a text file using a StreamWriter, or you can use some of the methods of the File class (e.g. WriteAllText, AppendAllText) or the My.Computer.FileSystem object (e.g. WriteAllText). Note that, if you want to use a StreamWriter, you can create one explicitly or with the File.OpenText or My.Computer.FileSystem.OpenTextFileWriter. An MSDN search for write text file would yield all manner of results.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width