Click here to Skip to main content
15,908,173 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionSkyWave Sample Application Pin
Majid Shahabfar8-Jun-06 6:01
Majid Shahabfar8-Jun-06 6:01 
QuestionDynamic Image Map [modified] Pin
Malcolm Smart8-Jun-06 4:06
Malcolm Smart8-Jun-06 4:06 
QuestionHow locaize CrystalReports in Visual 2005? Pin
Aleksan8-Jun-06 1:05
Aleksan8-Jun-06 1:05 
Questionhow to conver public assembly to private Pin
laxman.m8-Jun-06 0:12
laxman.m8-Jun-06 0:12 
AnswerRe: how to conver public assembly to private Pin
Stephan Samuel8-Jun-06 11:10
Stephan Samuel8-Jun-06 11:10 
GeneralRe: how to conver public assembly to private [modified] Pin
Igor Sukhov8-Jun-06 15:06
Igor Sukhov8-Jun-06 15:06 
QuestionNeed Detailed Port Name/Info Pin
rpourzia7-Jun-06 19:59
rpourzia7-Jun-06 19:59 
QuestionDeleting lines from a text file without resorting to a temporary file. Pin
analytiks7-Jun-06 18:07
analytiks7-Jun-06 18:07 
The requirement is to delete a line from a text file without resorting to a temporary file.

Presently, this has been implemented using the FileStream class and its Position member. Say for instance if there are 10 lines in the text file and the 5th line is to be deleted. The lines 6-10 are re-written from the 5th line, thus shifting these lines one line upwards. And the 10th line is overwritten by writing spaces to it.

This has avoided the use of a temporary file. But this is unnecessarily creating a blank line towards the end of the file.
I did not find any solution to delete the line altogether. Is there any way to do it.

Please Help.

AnswerRe: Deleting lines from a text file without resorting to a temporary file. Pin
Josh Smith8-Jun-06 8:36
Josh Smith8-Jun-06 8:36 
GeneralRe: Deleting lines from a text file without resorting to a temporary file. Pin
analytiks9-Jun-06 2:11
analytiks9-Jun-06 2:11 
GeneralRe: Deleting lines from a text file without resorting to a temporary file. [modified] Pin
Malcolm Smart9-Jun-06 5:28
Malcolm Smart9-Jun-06 5:28 
Questionconstants Pin
jgajarao7-Jun-06 14:26
jgajarao7-Jun-06 14:26 
AnswerRe: constants Pin
Josh Smith8-Jun-06 4:13
Josh Smith8-Jun-06 4:13 
AnswerRe: constants Pin
Jun Du8-Jun-06 4:20
Jun Du8-Jun-06 4:20 
GeneralRe: constants Pin
Josh Smith8-Jun-06 4:39
Josh Smith8-Jun-06 4:39 
GeneralRe: constants Pin
Jun Du8-Jun-06 5:43
Jun Du8-Jun-06 5:43 
QuestionMSMQ - symantec intrusion detection issue Pin
Vidhya Narasimhan7-Jun-06 10:46
Vidhya Narasimhan7-Jun-06 10:46 
GeneralRe: MSMQ - symantec intrusion detection issue Pin
Resolver188-Jun-06 3:48
Resolver188-Jun-06 3:48 
Question.NET 2.0, FTP, proxy >> error ! Pin
cutkemist7-Jun-06 1:34
cutkemist7-Jun-06 1:34 
QuestionMake own ListView-like Control [modified] Pin
Syntaxx.ch7-Jun-06 1:05
Syntaxx.ch7-Jun-06 1:05 
AnswerRe: Make own ListView-like Control [modified] Pin
Josh Smith7-Jun-06 3:52
Josh Smith7-Jun-06 3:52 
Questionuse Windows Dll in mobile project with framework 2.0 [modified] Pin
Ammar Ben Hadj Amor6-Jun-06 23:10
professionalAmmar Ben Hadj Amor6-Jun-06 23:10 
AnswerRe: use Windows Dll in mobile project with framework 2.0 [modified] Pin
Super Lloyd6-Jun-06 23:20
Super Lloyd6-Jun-06 23:20 
GeneralRe: use Windows Dll in mobile project with framework 2.0 [modified] Pin
Ammar Ben Hadj Amor6-Jun-06 23:37
professionalAmmar Ben Hadj Amor6-Jun-06 23:37 
Questionhow can we get encrypted file size of an NTFS encrypted file Pin
Zzeeshan Arif6-Jun-06 20:22
Zzeeshan Arif6-Jun-06 20:22 

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.