Click here to Skip to main content
16,004,898 members
Home / Discussions / C#
   

C#

 
GeneralRe: 64 bit WMI Pin
cpkilekofp25-Sep-08 3:55
cpkilekofp25-Sep-08 3:55 
GeneralRe: 64 bit WMI Pin
arkiboys25-Sep-08 4:07
arkiboys25-Sep-08 4:07 
GeneralRe: 64 bit WMI Pin
cpkilekofp25-Sep-08 5:30
cpkilekofp25-Sep-08 5:30 
GeneralRe: 64 bit WMI Pin
arkiboys25-Sep-08 22:10
arkiboys25-Sep-08 22:10 
QuestionProblems Working with Interop.Word [modified] Pin
Julia123-Sep-08 2:16
Julia123-Sep-08 2:16 
AnswerAttempt to bump post. Pin
Pete O'Hanlon23-Sep-08 2:21
mvePete O'Hanlon23-Sep-08 2:21 
JokeRe: Attempt to bump post. Pin
Paul Conrad23-Sep-08 6:24
professionalPaul Conrad23-Sep-08 6:24 
QuestionHow to write from begiinign of a file preserving the old content of the file Pin
mutpan23-Sep-08 1:37
mutpan23-Sep-08 1:37 
I would like to write some lines to the file from the beginning preserving the old contents of the file in C#.

For example my file contains

One
Two
Three

i want to add one line in the beginning like the following

New Line
One
Two
Three.

One possible solution is copying the whole content of the old file in to other file, and write the new line and append the old content. Is there any other possible ways?

Please let me know if anyone knows the answer.
AnswerRe: How to write from begiinign of a file preserving the old content of the file Pin
leppie23-Sep-08 1:44
leppie23-Sep-08 1:44 
AnswerRe: How to write from begiinign of a file preserving the old content of the file Pin
PIEBALDconsult23-Sep-08 3:23
mvePIEBALDconsult23-Sep-08 3:23 
AnswerRe: How to write from begiinign of a file preserving the old content of the file Pin
cpkilekofp25-Sep-08 9:43
cpkilekofp25-Sep-08 9:43 
QuestionDenay Screen.PrimaryScreen.Bounds.X function Pin
yesu prakash23-Sep-08 1:35
yesu prakash23-Sep-08 1:35 
AnswerRe: Denay Screen.PrimaryScreen.Bounds.X function Pin
leppie23-Sep-08 1:43
leppie23-Sep-08 1:43 
GeneralRe: Denay Screen.PrimaryScreen.Bounds.X function Pin
yesu prakash23-Sep-08 1:47
yesu prakash23-Sep-08 1:47 
Questionfacing problem while encryption Pin
sri_009923-Sep-08 1:24
sri_009923-Sep-08 1:24 
AnswerRe: facing problem while encryption Pin
leppie23-Sep-08 1:41
leppie23-Sep-08 1:41 
GeneralRe: facing problem while encryption Pin
Roger Alsing23-Sep-08 3:45
Roger Alsing23-Sep-08 3:45 
GeneralRe: facing problem while encryption Pin
User 665823-Sep-08 9:45
User 665823-Sep-08 9:45 
GeneralRe: facing problem while encryption Pin
Roger Alsing23-Sep-08 18:40
Roger Alsing23-Sep-08 18:40 
Questiondrawing labels using DrawLine()->HPGL Plot File [modified] Pin
Muralikumar7623-Sep-08 1:12
Muralikumar7623-Sep-08 1:12 
Questiontracking Utility Pin
ULLAS K23-Sep-08 0:33
ULLAS K23-Sep-08 0:33 
GeneralRe: tracking Utility Pin
Pete O'Hanlon23-Sep-08 0:36
mvePete O'Hanlon23-Sep-08 0:36 
QuestionRe: tracking Utility Pin
ULLAS K23-Sep-08 1:08
ULLAS K23-Sep-08 1:08 
AnswerRe: tracking Utility Pin
Pete O'Hanlon23-Sep-08 1:16
mvePete O'Hanlon23-Sep-08 1:16 
GeneralRe: tracking Utility Pin
ULLAS K23-Sep-08 1:26
ULLAS K23-Sep-08 1:26 

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.