Click here to Skip to main content
15,914,010 members
Home / Discussions / C#
   

C#

 
QuestionHL7 Pin
M.Ambigai24-Mar-09 15:44
M.Ambigai24-Mar-09 15:44 
QuestionXML Pin
M.Ambigai24-Mar-09 15:42
M.Ambigai24-Mar-09 15:42 
AnswerRe: XML Pin
Christian Graus24-Mar-09 15:45
protectorChristian Graus24-Mar-09 15:45 
AnswerRe: XML Pin
PIEBALDconsult24-Mar-09 16:04
mvePIEBALDconsult24-Mar-09 16:04 
Questionfiles, streams, strings... Pin
VitroBlue24-Mar-09 13:20
VitroBlue24-Mar-09 13:20 
AnswerRe: files, streams, strings... Pin
Xmen Real 24-Mar-09 14:13
professional Xmen Real 24-Mar-09 14:13 
AnswerRe: files, streams, strings... Pin
King Julien24-Mar-09 20:18
King Julien24-Mar-09 20:18 
AnswerRe: files, streams, strings... Pin
jaypatel51225-Mar-09 6:26
jaypatel51225-Mar-09 6:26 
If you require to only change the extension , the suggestion provided by other techies are just perfect...
But if you want to see the files list...
Edit it,
change it in any way then you might need to do this...

string data = File.ReadAllText("D:\ListOfFiles.txt",Encoding.Default);


This will give you all the lines of code...
And if you need to take the data line by line then you may do it in this way .


string[] data = File.ReallAllLines("D:\ListOfFiles.txt",Encoding.Default);

This will give you the array of strings of lines of listoffiles...

And then you all need to do is some cutting and attaching using string functions.....
QuestionWeird Problem Pin
CodingYoshi24-Mar-09 11:53
CodingYoshi24-Mar-09 11:53 
AnswerRe: Weird Problem Pin
Xmen Real 24-Mar-09 14:09
professional Xmen Real 24-Mar-09 14:09 
Questionforce application to be shown on a specific monitor Pin
ezazazel24-Mar-09 11:44
ezazazel24-Mar-09 11:44 
QuestionRe: force application to be shown on a specific monitor Pin
Nagy Vilmos24-Mar-09 14:18
professionalNagy Vilmos24-Mar-09 14:18 
AnswerRe: force application to be shown on a specific monitor Pin
DaveyM6924-Mar-09 15:24
professionalDaveyM6924-Mar-09 15:24 
AnswerRe: force application to be shown on a specific monitor Pin
Luc Pattyn24-Mar-09 15:27
sitebuilderLuc Pattyn24-Mar-09 15:27 
AnswerRe: force application to be shown on a specific monitor Pin
ezazazel25-Mar-09 9:05
ezazazel25-Mar-09 9:05 
QuestionSome WS Question Pin
E_Gold24-Mar-09 11:19
E_Gold24-Mar-09 11:19 
AnswerRe: Some WS Question Pin
martin_hughes24-Mar-09 11:50
martin_hughes24-Mar-09 11:50 
AnswerRe: Some WS Question Pin
Yusuf24-Mar-09 12:08
Yusuf24-Mar-09 12:08 
QuestionImageMagick for .NET 2008 Pin
Member 462208924-Mar-09 10:34
Member 462208924-Mar-09 10:34 
AnswerRe: ImageMagick for .NET 2008 Pin
Yusuf24-Mar-09 12:11
Yusuf24-Mar-09 12:11 
GeneralRe: ImageMagick for .NET 2008 Pin
Member 462208927-Mar-09 5:04
Member 462208927-Mar-09 5:04 
QuestionWhitespace in Form Control Pin
shafiullah12324-Mar-09 10:05
shafiullah12324-Mar-09 10:05 
AnswerRe: Whitespace in Form Control Pin
tech60324-Mar-09 13:08
tech60324-Mar-09 13:08 
AnswerRe: Whitespace in Form Control Pin
shafiullah12325-Mar-09 9:31
shafiullah12325-Mar-09 9:31 
Questionms access Stored Procedure - I am getting an empty DataSet when running a stored query Pin
astroudjr24-Mar-09 9:06
astroudjr24-Mar-09 9:06 

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.