Click here to Skip to main content
15,884,177 members
Home / Discussions / C#
   

C#

 
QuestionRemove a special character from a file and save in same file. Pin
harishusharma29-May-09 0:53
harishusharma29-May-09 0:53 
AnswerRe: Remove a special character from a file and save in same file. Pin
stancrm29-May-09 1:10
stancrm29-May-09 1:10 
GeneralRe: Remove a special character from a file and save in same file. Pin
Nagy Vilmos29-May-09 1:14
professionalNagy Vilmos29-May-09 1:14 
GeneralRe: Remove a special character from a file and save in same file. Pin
harishusharma29-May-09 1:24
harishusharma29-May-09 1:24 
AnswerRe: Remove a special character from a file and save in same file. Pin
Nagy Vilmos29-May-09 1:12
professionalNagy Vilmos29-May-09 1:12 
GeneralRe: Remove a special character from a file and save in same file. Pin
harishusharma29-May-09 1:31
harishusharma29-May-09 1:31 
GeneralRe: Remove a special character from a file and save in same file. Pin
Nagy Vilmos29-May-09 1:43
professionalNagy Vilmos29-May-09 1:43 
AnswerRe: Remove a special character from a file and save in same file. Pin
Hoorfar29-May-09 22:15
Hoorfar29-May-09 22:15 
i think diffrent encoding make this problem
to solve this problem without any knowledge about encoding use System.IO.StreamReader and depending on size of file use ReadToEnd or ReadLine method. this two method return string and with on loop search and replace you characters and if use ReadToEnd method close file and write to file with System.IO.StreamWriter and if user ReadLine you must use temp file [Get temp address with string System.IO.Path.GetTempFileName()] and when reading and replacing complete delete main file [System.IO.File.Delete(string path)] and copy temp file System.IO.File.Copy(string path1,string path2)]
QuestionRe: Remove a special character from a file and save in same file. Pin
harishusharma9-Jul-09 6:22
harishusharma9-Jul-09 6:22 
Questionlogged in username in windows service Pin
P. S. Pundeer29-May-09 0:29
P. S. Pundeer29-May-09 0:29 
AnswerRe: logged in username in windows service Pin
Simon P Stevens29-May-09 0:46
Simon P Stevens29-May-09 0:46 
Questionenterprise libeary query Pin
sheemap29-May-09 0:22
sheemap29-May-09 0:22 
AnswerRe: enterprise libeary query Pin
Nagy Vilmos29-May-09 0:39
professionalNagy Vilmos29-May-09 0:39 
QuestionMessage Handling...... Pin
vishal moharikar29-May-09 0:11
vishal moharikar29-May-09 0:11 
AnswerRe: Message Handling...... Pin
AhsanS29-May-09 0:14
AhsanS29-May-09 0:14 
GeneralRe: Message Handling...... Pin
vishal moharikar29-May-09 0:21
vishal moharikar29-May-09 0:21 
GeneralRe: Message Handling...... Pin
0x3c029-May-09 0:23
0x3c029-May-09 0:23 
AnswerRe: Message Handling...... Pin
0x3c029-May-09 0:26
0x3c029-May-09 0:26 
AnswerRe: Message Handling...... Pin
Rob Philpott29-May-09 0:30
Rob Philpott29-May-09 0:30 
GeneralRe: Message Handling...... Pin
Rob Philpott29-May-09 0:35
Rob Philpott29-May-09 0:35 
GeneralRe: Message Handling...... Pin
vishal moharikar29-May-09 0:48
vishal moharikar29-May-09 0:48 
GeneralRe: Message Handling...... Pin
Rajesh R Subramanian29-May-09 1:27
professionalRajesh R Subramanian29-May-09 1:27 
GeneralRe: Message Handling...... Pin
Rob Philpott29-May-09 3:14
Rob Philpott29-May-09 3:14 
AnswerRe: Message Handling...... Pin
mark_ian1-Jun-09 4:57
mark_ian1-Jun-09 4:57 
QuestionCombobox Pin
yesu prakash29-May-09 0:03
yesu prakash29-May-09 0:03 

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.