Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. open file which can see inside of it

open file which can see inside of it

Scheduled Pinned Locked Moved C#
question
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nhathoang
    wrote on last edited by
    #1

    when we want open a file,we have to double click on the file,but Right now,i want open it by command,What must I do?,(note: open file which can see inside of it)

    C M C 3 Replies Last reply
    0
    • N nhathoang

      when we want open a file,we have to double click on the file,but Right now,i want open it by command,What must I do?,(note: open file which can see inside of it)

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      File.GetAllText ? Hard to know, your question isn't really laid out in a way that makes much sense.

      Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      1 Reply Last reply
      0
      • N nhathoang

        when we want open a file,we have to double click on the file,but Right now,i want open it by command,What must I do?,(note: open file which can see inside of it)

        M Offline
        M Offline
        Manoj Kumar Rai
        wrote on last edited by
        #3

        Use StreamReader object to read the content of the file and display it in a window. Also, please make sure that your file may not only contain text data but it can contain picture etc. Hence, if you want to see the real world inside the file you should reading it in binary format and display the records.

        Manoj Never Gives up

        N 1 Reply Last reply
        0
        • M Manoj Kumar Rai

          Use StreamReader object to read the content of the file and display it in a window. Also, please make sure that your file may not only contain text data but it can contain picture etc. Hence, if you want to see the real world inside the file you should reading it in binary format and display the records.

          Manoj Never Gives up

          N Offline
          N Offline
          nhathoang
          wrote on last edited by
          #4

          thanks you,I am sorry because I don't display obvious my ideal After that,I will display my question when we double click a file,the window of file will display,and we can see the tittle of it(EX: file.txt) If we use command of C#,what will we do to see the window of file.txt opended ?

          1 Reply Last reply
          0
          • N nhathoang

            when we want open a file,we have to double click on the file,but Right now,i want open it by command,What must I do?,(note: open file which can see inside of it)

            C Offline
            C Offline
            Chintan Desai
            wrote on last edited by
            #5

            just use Process class.Inside it there one method which takes input as file name and opens it.

            Regards Chintan www.visharadsoft.com (Nothing is so purify as KNOWLEDGE)

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups