Click here to Skip to main content
15,887,585 members
Home / Discussions / C#
   

C#

 
AnswerRe: The animation of my character runs on the spot Pin
Gerry Schmitz17-Jul-18 7:37
mveGerry Schmitz17-Jul-18 7:37 
Questionstring replace Pin
Ali Doran16-Jul-18 9:39
Ali Doran16-Jul-18 9:39 
AnswerRe: string replace Pin
Dave Kreskowiak16-Jul-18 10:42
mveDave Kreskowiak16-Jul-18 10:42 
AnswerRe: string replace Pin
Peter_in_278016-Jul-18 11:40
professionalPeter_in_278016-Jul-18 11:40 
AnswerRe: string replace Pin
Gerry Schmitz16-Jul-18 11:46
mveGerry Schmitz16-Jul-18 11:46 
AnswerRe: string replace Pin
jschell16-Jul-18 15:49
jschell16-Jul-18 15:49 
GeneralRe: string replace Pin
Ali Doran16-Jul-18 17:09
Ali Doran16-Jul-18 17:09 
GeneralRe: string replace Pin
OriginalGriff16-Jul-18 19:36
mveOriginalGriff16-Jul-18 19:36 
That's different: in that case you definitely need a different approach. Reading and treating an executable file as text will corrupt the file; what you end up with is not going to be a valid executable, because the "translation" from the on-disk binary to text loses information, and the when you write it that cannot be recovered.

You would need to read the file as binary, handle it as binary, and write it back as binary as well.

But you also don't want to use the root folder of any drive: the access is restricted and likely to become more restricted in future.

Why do you think a program has a "bad file" that a simple text replace will fix?
Sent from my Amstrad PC 1640
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!

GeneralRe: string replace Pin
Ali Doran16-Jul-18 22:38
Ali Doran16-Jul-18 22:38 
GeneralRe: string replace Pin
OriginalGriff16-Jul-18 23:07
mveOriginalGriff16-Jul-18 23:07 
GeneralRe: string replace Pin
Ali Doran16-Jul-18 23:34
Ali Doran16-Jul-18 23:34 
GeneralRe: string replace Pin
OriginalGriff16-Jul-18 23:39
mveOriginalGriff16-Jul-18 23:39 
GeneralRe: string replace Pin
Ali Doran17-Jul-18 5:03
Ali Doran17-Jul-18 5:03 
GeneralRe: string replace Pin
OriginalGriff17-Jul-18 5:10
mveOriginalGriff17-Jul-18 5:10 
QuestionMVC Website is working slow Pin
galba201815-Jul-18 21:12
galba201815-Jul-18 21:12 
AnswerRe: MVC Website is working slow Pin
Jochen Arndt15-Jul-18 23:56
professionalJochen Arndt15-Jul-18 23:56 
QuestionZoom Image in the PictureBox where user make selection Pin
Member 1384510215-Jul-18 4:26
Member 1384510215-Jul-18 4:26 
AnswerRe: Zoom Image in the PictureBox where user make selection Pin
Gerry Schmitz16-Jul-18 10:03
mveGerry Schmitz16-Jul-18 10:03 
QuestionCompiler Inside The Program got errors - Gmail Pin
Member 1385811014-Jul-18 7:58
Member 1385811014-Jul-18 7:58 
AnswerRe: Compiler Inside The Program got errors - Gmail Pin
OriginalGriff14-Jul-18 18:43
mveOriginalGriff14-Jul-18 18:43 
AnswerRe: Compiler Inside The Program got errors - Gmail Pin
Eddy Vluggen14-Jul-18 22:51
professionalEddy Vluggen14-Jul-18 22:51 
GeneralRe: Compiler Inside The Program got errors - Gmail Pin
Member 1385811015-Jul-18 1:11
Member 1385811015-Jul-18 1:11 
GeneralRe: Compiler Inside The Program got errors - Gmail Pin
Richard MacCutchan15-Jul-18 2:01
mveRichard MacCutchan15-Jul-18 2:01 
GeneralRe: Compiler Inside The Program got errors - Gmail Pin
Eddy Vluggen15-Jul-18 2:04
professionalEddy Vluggen15-Jul-18 2:04 
GeneralRe: Compiler Inside The Program got errors - Gmail Pin
Member 1385811015-Jul-18 2:58
Member 1385811015-Jul-18 2:58 

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.