fast write txt file
-
This depends upon what you are doing, and where the text is coming from. In general you'll probably need to look at
TextWriter
class, or one of theStreamWriter
subclasses.Dalek Dave: There are many words that some find offensive, Homosexuality, Alcoholism, Religion, Visual Basic, Manchester United, Butter.
-
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... -
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... -
Please reshape that, as I know less then before. And make some example (code), so that we can suggest even faster way if awaible
-
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... -
AlexB47 wrote:
where is the more fast metod to write a txt file?
Write to a RAM-disk :)
I are Troll :suss:
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
-
AlexB47 wrote:
where is the more fast metod to write a txt file?
Write to a RAM-disk :)
I are Troll :suss:
While we're ignoring space limitations and volatility, I say write it to CPU registers!
-
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...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
-
Please reshape that, as I know less then before. And make some example (code), so that we can suggest even faster way if awaible
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
-
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
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?
-
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
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...