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. Dynamic file reading

Dynamic file reading

Scheduled Pinned Locked Moved C#
questiondiscussioncsharp
4 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.
  • F Offline
    F Offline
    ffowler
    wrote on last edited by
    #1

    Hello All, Just a question (or opinions), In Unix I can "tail" a file, whereby I can dynamically see what is being written to the file in real time (explaination is for those who don't know!). Can something like this be acheived with C# and a windows form? Thanks for the thoughts and have a great weekend.

    P A C 3 Replies Last reply
    0
    • F ffowler

      Hello All, Just a question (or opinions), In Unix I can "tail" a file, whereby I can dynamically see what is being written to the file in real time (explaination is for those who don't know!). Can something like this be acheived with C# and a windows form? Thanks for the thoughts and have a great weekend.

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      Yes

      1 Reply Last reply
      0
      • F ffowler

        Hello All, Just a question (or opinions), In Unix I can "tail" a file, whereby I can dynamically see what is being written to the file in real time (explaination is for those who don't know!). Can something like this be acheived with C# and a windows form? Thanks for the thoughts and have a great weekend.

        A Offline
        A Offline
        Adeel Chaudhry
        wrote on last edited by
        #3

        http://www.codeproject.com/KB/cs/wintail.aspx[^] It is a great idea to search (google) and re-search (CP). HTH.

        Do rate the reply, if it helps or even if it doesnot, because it helps the members to know, what solved the issue. Thanks.

        1 Reply Last reply
        0
        • F ffowler

          Hello All, Just a question (or opinions), In Unix I can "tail" a file, whereby I can dynamically see what is being written to the file in real time (explaination is for those who don't know!). Can something like this be acheived with C# and a windows form? Thanks for the thoughts and have a great weekend.

          C Offline
          C Offline
          Charith Jayasundara
          wrote on last edited by
          #4

          Hi, Yes you can do it in this manner,, StreamWriter SW; SW=File.AppendText("C:\\MyTextFile.txt"); SW.WriteLine("This Line Is Appended"); SW.Close(); Console.WriteLine("Text Appended Successfully"); Regards, Charith

          Charith Jayasundara

          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