Click here to Skip to main content
15,909,939 members
Home / Discussions / C#
   

C#

 
GeneralRe: how 2 create a software Pin
0x3c020-Apr-09 7:56
0x3c020-Apr-09 7:56 
GeneralRe: how 2 create a software Pin
OriginalGriff20-Apr-09 8:31
mveOriginalGriff20-Apr-09 8:31 
GeneralRe: how 2 create a software Pin
Ravadre20-Apr-09 8:57
Ravadre20-Apr-09 8:57 
GeneralRe: how 2 create a software Pin
OriginalGriff20-Apr-09 8:33
mveOriginalGriff20-Apr-09 8:33 
GeneralRe: how 2 create a software Pin
buachaill cliste20-Apr-09 9:56
buachaill cliste20-Apr-09 9:56 
GeneralRe: how 2 create a software Pin
riced20-Apr-09 11:34
riced20-Apr-09 11:34 
Questionreplacing new lines and tab spacing with a single space Pin
mist_psycho20-Apr-09 4:08
mist_psycho20-Apr-09 4:08 
AnswerRe: replacing new lines and tab spacing with a single space [modified] Pin
agent00zelda20-Apr-09 4:43
agent00zelda20-Apr-09 4:43 
One suggestion would be to check out the members of the StreamReader and StreamWriter classes, along with sample code. Try using Read() or ReadLine() instead of the ReadAllLines() in your while loop condition.


http://msdn.microsoft.com/en-us/library/system.io.streamreader.aspx[^]

http://msdn.microsoft.com/en-us/library/system.io.streamwriter.aspx[^]

Also, you might want to consider copying the data as you read it to a new text file and overwriting the old one when you are finished. And don't forget to close the filestreams when complete.

modified on Monday, April 20, 2009 10:49 AM

AnswerRe: replacing new lines and tab spacing with a single space Pin
riced20-Apr-09 4:51
riced20-Apr-09 4:51 
GeneralRe: replacing new lines and tab spacing with a single space Pin
mist_psycho20-Apr-09 6:12
mist_psycho20-Apr-09 6:12 
GeneralRe: replacing new lines and tab spacing with a single space Pin
OriginalGriff20-Apr-09 6:32
mveOriginalGriff20-Apr-09 6:32 
GeneralRe: replacing new lines and tab spacing with a single space Pin
riced20-Apr-09 7:16
riced20-Apr-09 7:16 
AnswerRe: replacing new lines and tab spacing with a single space Pin
PIEBALDconsult20-Apr-09 14:04
mvePIEBALDconsult20-Apr-09 14:04 
Questioncombobox type mismatch Pin
fecaloid monster20-Apr-09 3:51
fecaloid monster20-Apr-09 3:51 
AnswerRe: combobox type mismatch Pin
N a v a n e e t h20-Apr-09 4:19
N a v a n e e t h20-Apr-09 4:19 
GeneralRe: combobox type mismatch Pin
fecaloid monster20-Apr-09 5:10
fecaloid monster20-Apr-09 5:10 
QuestionData Modeler Pin
Muhammad Nauman Yousuf20-Apr-09 3:31
Muhammad Nauman Yousuf20-Apr-09 3:31 
AnswerRe: Data Modeler Pin
Nagy Vilmos20-Apr-09 3:42
professionalNagy Vilmos20-Apr-09 3:42 
QuestionSystem.Mangement.ManagementObject is not working properly in a WinForms application. Pin
darthBug20-Apr-09 3:25
darthBug20-Apr-09 3:25 
AnswerRe: System.Mangement.ManagementObject is not working properly in a WinForms application. Pin
DaveyM6920-Apr-09 3:34
professionalDaveyM6920-Apr-09 3:34 
GeneralRe: System.Mangement.ManagementObject is not working properly in a WinForms application. Pin
darthBug20-Apr-09 4:04
darthBug20-Apr-09 4:04 
GeneralRe: System.Mangement.ManagementObject is not working properly in a WinForms application. Pin
DaveyM6920-Apr-09 6:05
professionalDaveyM6920-Apr-09 6:05 
GeneralRe: System.Mangement.ManagementObject is not working properly in a WinForms application. Pin
darthBug21-Apr-09 3:30
darthBug21-Apr-09 3:30 
QuestionOnline help code Pin
Member 437447420-Apr-09 3:20
Member 437447420-Apr-09 3:20 
AnswerRe: Online help code Pin
SeMartens20-Apr-09 3:29
SeMartens20-Apr-09 3:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.