Click here to Skip to main content
15,915,019 members
Home / Discussions / C#
   

C#

 
GeneralRe: Reading Data from XML Pin
Le centriste21-Feb-08 6:20
Le centriste21-Feb-08 6:20 
GeneralScolling two listviews simeltaniously Pin
DnyanAnand20-Feb-08 19:35
professionalDnyanAnand20-Feb-08 19:35 
GeneralRe: Scolling two listviews simeltaniously Pin
Christian Graus20-Feb-08 20:14
protectorChristian Graus20-Feb-08 20:14 
GeneralRe: Scolling two listviews simeltaniously Pin
DnyanAnand20-Feb-08 20:36
professionalDnyanAnand20-Feb-08 20:36 
QuestionHelp Required in File Operations. Pin
deepaks320-Feb-08 18:47
deepaks320-Feb-08 18:47 
GeneralRe: Help Required in File Operations. Pin
Christian Graus20-Feb-08 20:06
protectorChristian Graus20-Feb-08 20:06 
GeneralRe: Help Required in File Operations. Pin
Vikram A Punathambekar20-Feb-08 21:26
Vikram A Punathambekar20-Feb-08 21:26 
GeneralRe: Help Required in File Operations. Pin
Guffa20-Feb-08 22:46
Guffa20-Feb-08 22:46 
deepaks3 wrote:
1.In my screen i also want to show these values, so what is the method to fetch individual values


You can read the values into a dictionary like this:
Dictionary<string, string> values = new Dictionary<string, string>();
foreach (string line in File.ReadAllLines(fileName)) {
   string[] data = line.Split('=');
   if (data.Length == 2) values.Add(data[0], data[1]);
}

To read a value from the dictionary:
string id = values["ID"];


deepaks3 wrote:
2.When i make any change to the value i want it to be saved in that particular line itself.


Files are not line based, so you can't change a single line in a file. It's possible to update the file from that line and forward, but it's complicated. Just rewrite the entire file.

Despite everything, the person most likely to be fooling you next is yourself.

GeneralDownloading files from FTP using C#.Net 1.1 Pin
pavya_Cool20-Feb-08 18:44
pavya_Cool20-Feb-08 18:44 
GeneralRe: Downloading files from FTP using C#.Net 1.1 Pin
N a v a n e e t h20-Feb-08 19:54
N a v a n e e t h20-Feb-08 19:54 
Questionfrozen column in Listview ? Pin
Xmen Real 20-Feb-08 18:26
professional Xmen Real 20-Feb-08 18:26 
AnswerRe: frozen column in Listview ? Pin
Dave Kreskowiak21-Feb-08 5:10
mveDave Kreskowiak21-Feb-08 5:10 
Generalwhy use | instead of || and same with & and && Pin
Xmen Real 20-Feb-08 18:06
professional Xmen Real 20-Feb-08 18:06 
GeneralRe: why use | instead of || and same with & and && Pin
mav.northwind20-Feb-08 19:27
mav.northwind20-Feb-08 19:27 
GeneralRe: why use | instead of || and same with & and && Pin
darkelv20-Feb-08 19:34
darkelv20-Feb-08 19:34 
GeneralRe: why use | instead of || and same with & and && Pin
Xmen Real 21-Feb-08 2:50
professional Xmen Real 21-Feb-08 2:50 
GeneralRe: why use | instead of || and same with & and && Pin
darkelv21-Feb-08 3:16
darkelv21-Feb-08 3:16 
GeneralRe: why use | instead of || and same with & and && Pin
John Oxley20-Feb-08 23:39
John Oxley20-Feb-08 23:39 
GeneralRe: why use | instead of || and same with & and && Pin
Xmen Real 21-Feb-08 2:37
professional Xmen Real 21-Feb-08 2:37 
GeneralRe: why use | instead of || and same with & and && Pin
Dan Neely21-Feb-08 2:59
Dan Neely21-Feb-08 2:59 
GeneralRe: why use | instead of || and same with & and && Pin
John Oxley21-Feb-08 4:46
John Oxley21-Feb-08 4:46 
GeneralRe: why use | instead of || and same with & and && Pin
Xmen Real 21-Feb-08 5:04
professional Xmen Real 21-Feb-08 5:04 
GeneralRe: why use | instead of || and same with & and && Pin
PIEBALDconsult21-Feb-08 5:51
mvePIEBALDconsult21-Feb-08 5:51 
GeneralCompletely OT: why use | instead of || and same with & and && Pin
John Oxley21-Feb-08 9:46
John Oxley21-Feb-08 9:46 
GeneralRe: Completely OT: why use | instead of || and same with & and && Pin
PIEBALDconsult21-Feb-08 12:09
mvePIEBALDconsult21-Feb-08 12:09 

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.