Results 1 to 3 of 3

Thread: [2005] Reading a flat file

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2004
    Posts
    610

    [2005] Reading a flat file

    Hi guyz,

    I am using vb.net console application to read a flat file

    Does anyone know the codes for it? and how do you write the result that you read onto the console?

    Thx in advance

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

    Re: [2005] Reading a flat file

    http://search.microsoft.com/results....file&mkt=en-au

    You write to the console using the methods of the Console class whose names begin with "Write".
    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
    Shared Member
    Join Date
    May 2005
    Location
    Kashmir, India
    Posts
    2,277

    Re: [2005] Reading a flat file

    Console.WriteLine is the method that you should use to write the output on to the Console Window. Regarding reading the file, you can use StreamReader class which is contained in System.Text Namespace. The samples, ect can be found on MSDN.
    Use [code] source code here[/code] tags when you post source code.

    My Articles

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