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. fast write txt file

fast write txt file

Scheduled Pinned Locked Moved C#
question
14 Posts 9 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.
  • A AlexB47

    Hi All, where is the more fast metod to write a txt file? Thanks a lot.

    Alex

    D Offline
    D Offline
    dan sh
    wrote on last edited by
    #3

    Here is link[^] with similar discussion.

    1 Reply Last reply
    0
    • A AlexB47

      Hi All, where is the more fast metod to write a txt file? Thanks a lot.

      Alex

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #4

      AlexB47 wrote:

      where is the more fast metod to write a txt file

      Faster than what?

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008
      But no longer in 2009...

      A 1 Reply Last reply
      0
      • D Dave Kreskowiak

        AlexB47 wrote:

        where is the more fast metod to write a txt file

        Faster than what?

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007, 2008
        But no longer in 2009...

        A Offline
        A Offline
        AlexB47
        wrote on last edited by
        #5

        see below...

        Alex

        modified on Wednesday, February 24, 2010 3:01 AM

        S D 2 Replies Last reply
        0
        • A AlexB47

          see below...

          Alex

          modified on Wednesday, February 24, 2010 3:01 AM

          S Offline
          S Offline
          Saksida Bojan
          wrote on last edited by
          #6

          Please reshape that, as I know less then before. And make some example (code), so that we can suggest even faster way if awaible

          A 1 Reply Last reply
          0
          • A AlexB47

            Hi All, where is the more fast metod to write a txt file? Thanks a lot.

            Alex

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #7

            AlexB47 wrote:

            where is the more fast metod to write a txt file?

            Write to a RAM-disk :)

            I are Troll :suss:

            OriginalGriffO A 2 Replies Last reply
            0
            • A AlexB47

              see below...

              Alex

              modified on Wednesday, February 24, 2010 3:01 AM

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #8

              Your reply makes no sense. There are various way of writing to a text file, and you haven't shown what you're using or why you need something faster.

              A guide to posting questions on CodeProject[^]
              Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                   2006, 2007, 2008
              But no longer in 2009...

              A 1 Reply Last reply
              0
              • L Lost User

                AlexB47 wrote:

                where is the more fast metod to write a txt file?

                Write to a RAM-disk :)

                I are Troll :suss:

                OriginalGriffO Offline
                OriginalGriffO Offline
                OriginalGriff
                wrote on last edited by
                #9

                Eddy Vluggen wrote:

                Write to a RAM-disk

                Nah - write it to WOM! :laugh:

                You should never use standby on an elephant. It always crashes when you lift the ears. - Mark Wallace C/C++ (I dont see a huge difference between them, and the 'benefits' of C++ are questionable, who needs inheritance when you have copy and paste) - fat_boy

                "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                1 Reply Last reply
                0
                • L Lost User

                  AlexB47 wrote:

                  where is the more fast metod to write a txt file?

                  Write to a RAM-disk :)

                  I are Troll :suss:

                  A Offline
                  A Offline
                  AspDotNetDev
                  wrote on last edited by
                  #10

                  While we're ignoring space limitations and volatility, I say write it to CPU registers!

                  [Forum Guidelines]

                  1 Reply Last reply
                  0
                  • D Dave Kreskowiak

                    Your reply makes no sense. There are various way of writing to a text file, and you haven't shown what you're using or why you need something faster.

                    A guide to posting questions on CodeProject[^]
                    Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                         2006, 2007, 2008
                    But no longer in 2009...

                    A Offline
                    A Offline
                    AlexB47
                    wrote on last edited by
                    #11

                    I need to read a data from a COM port and write this in a file txt. In COM port I receive a continuos fast flow of data (100 sentences at second). For each sentence, i need to write this sentence and make several calculations. If i disable the write metod, all operate in real time ... but if i write, after a few minutes, the processed sentences is not the real sended to a com port (not work in real time).

                    Alex

                    T D 2 Replies Last reply
                    0
                    • S Saksida Bojan

                      Please reshape that, as I know less then before. And make some example (code), so that we can suggest even faster way if awaible

                      A Offline
                      A Offline
                      AlexB47
                      wrote on last edited by
                      #12

                      I need to read a data from a COM port and write this in a file txt. In COM port I receive a continuos fast flow of data (100 sentences at second). For each sentence, i need to write this sentence and make several calculations. If i disable the write metod, all operate in real time ... but if i write, after a few minutes, the processed sentences is not the real sended to a com port (not work in real time)..

                      Alex

                      1 Reply Last reply
                      0
                      • A AlexB47

                        I need to read a data from a COM port and write this in a file txt. In COM port I receive a continuos fast flow of data (100 sentences at second). For each sentence, i need to write this sentence and make several calculations. If i disable the write metod, all operate in real time ... but if i write, after a few minutes, the processed sentences is not the real sended to a com port (not work in real time).

                        Alex

                        T Offline
                        T Offline
                        Thomas Krojer
                        wrote on last edited by
                        #13

                        Let me ask a few questions: 1) 100 sentences (how big?) 2) you asked for a fast method of writing to file, and in your explanation you tell us, that after a few minutes the processed data are not written to the COM port? file? where? 3) if you only need to write the file, WHY should it slow down after a few minutes? I´ve written terabytes of data to disk, an it was always fast, even after hours/days ... maybe an error in your writing/calculation logic?

                        1 Reply Last reply
                        0
                        • A AlexB47

                          I need to read a data from a COM port and write this in a file txt. In COM port I receive a continuos fast flow of data (100 sentences at second). For each sentence, i need to write this sentence and make several calculations. If i disable the write metod, all operate in real time ... but if i write, after a few minutes, the processed sentences is not the real sended to a com port (not work in real time).

                          Alex

                          D Offline
                          D Offline
                          Dave Kreskowiak
                          wrote on last edited by
                          #14

                          AlexB47 wrote:

                          If i disable the write metod, all operate in real time

                          This in no way means that the problem is with writing to the file. WIthout seeing your code, it's impossible to tell you where it's going wrong.

                          A guide to posting questions on CodeProject[^]
                          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                               2006, 2007, 2008
                          But no longer in 2009...

                          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