+ Reply to Thread
Results 1 to 2 of 2

Thread: read file lines using args

  1. #1
    Junior Member
    Join Date
    Jan 2012
    Posts
    20

    read file lines using args

    I`d like to open my application with parameter file.txt for example like :
    Myapp.exe file.txt so that it read each line on that file.
    How can i do that using args ?

  2. #2
    Okay to read the file's data using args you would use that
    Code:
    void Main(string[] args)
    {
        File.ReadLines(args[0])
    }
    since the whole file's data will be in the args array

+ Reply to Thread

Bookmarks

Posting Permissions

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