Click here to Skip to main content
15,902,840 members
Home / Discussions / C#
   

C#

 
AnswerRe: runtime error for oledb Pin
dan!sh 21-Mar-09 1:32
professional dan!sh 21-Mar-09 1:32 
AnswerRe: runtime error for oledb Pin
Eddy Vluggen21-Mar-09 2:25
professionalEddy Vluggen21-Mar-09 2:25 
QuestionRegular Expressions Pin
yadlaprasad20-Mar-09 23:49
yadlaprasad20-Mar-09 23:49 
AnswerRe: Regular Expressions Pin
dan!sh 21-Mar-09 1:09
professional dan!sh 21-Mar-09 1:09 
AnswerRe: Regular Expressions Pin
Michael Schubert21-Mar-09 2:45
Michael Schubert21-Mar-09 2:45 
AnswerRe: Regular Expressions Pin
PIEBALDconsult21-Mar-09 4:40
mvePIEBALDconsult21-Mar-09 4:40 
AnswerRe: Regular Expressions Pin
agent00zelda23-Mar-09 10:02
agent00zelda23-Mar-09 10:02 
Questionhelp me in this program Pin
Nettai20-Mar-09 22:48
Nettai20-Mar-09 22:48 
i am new to c#.net...i am having 90 text files having image intensity values...i am reading n th row of every text file and write it into newly created text file....i have done this in matlab .i am getting correct output...but in this program i have done something wrong...because of that the no.of columns are not same in each row...i couldn't get the output image....here is the program
private void button1_Click(object sender, EventArgs e)
        {
            
                 
           try
            {
                
                string path1="c:\\Vicky\\DATAS\\OutputFiles";
                string path2 = "\\";
                string path4 = ".txt";
                DirectoryInfo dir1 = new DirectoryInfo(path1);
                dir1.Create();
                                             
                DirectoryInfo Dir = new DirectoryInfo(@"C:\Vicky\DATAS\textfiles");
                FileInfo[] FileList = Dir.GetFiles("c*.txt",SearchOption.AllDirectories);
                for(int t=1;t<280;t++)
                {
                   string path3=Convert.ToString(t);
                   string path=path1+path2+path3+path4;
                   
                   FileStream fs = new FileStream(path, FileMode.Create, FileAccess.Write);
                   StreamWriter sw = new StreamWriter(fs);
                   
  
                foreach (FileInfo FI in FileList)
                {
                    FileStream fs1 = FI.OpenRead();
                    StreamReader sr = new StreamReader(fs1);
                    int i = 1;

                    while (sr.ReadLine() != null)
                    {
                        string d="";                      
                       
                            if (t == i)
                            {
                                    

                                    d = sr.ReadLine();
                                    sw.WriteLine(d);
                                    break;
                                
                            }
                          i++;
                        
                    }

                  }

               
            }
                //fs.Close();
                //sw.Close();
        }

AnswerRe: help me in this program Pin
Xmen Real 20-Mar-09 23:02
professional Xmen Real 20-Mar-09 23:02 
AnswerRe: help me in this program Pin
Nettai20-Mar-09 23:40
Nettai20-Mar-09 23:40 
GeneralRe: help me in this program Pin
Xmen Real 21-Mar-09 1:30
professional Xmen Real 21-Mar-09 1:30 
AnswerRe: help me in this program Pin
dan!sh 21-Mar-09 1:21
professional dan!sh 21-Mar-09 1:21 
QuestionClient in C# Pin
mrithula820-Mar-09 21:38
mrithula820-Mar-09 21:38 
AnswerRe: Client in C# Pin
mrithula823-Mar-09 20:50
mrithula823-Mar-09 20:50 
QuestionRemote Desktop Monitoring Pin
sanju_thomas20-Mar-09 20:32
sanju_thomas20-Mar-09 20:32 
AnswerRe: Remote Desktop Monitoring Pin
Xmen Real 20-Mar-09 22:56
professional Xmen Real 20-Mar-09 22:56 
QuestionC#.windows application Problem Pin
varun.g20-Mar-09 20:22
varun.g20-Mar-09 20:22 
AnswerRe: C#.windows application Problem [modified] Pin
dan!sh 20-Mar-09 22:27
professional dan!sh 20-Mar-09 22:27 
GeneralRe: C#.windows application Problem Pin
Xmen Real 20-Mar-09 23:08
professional Xmen Real 20-Mar-09 23:08 
GeneralRe: C#.windows application Problem Pin
dan!sh 21-Mar-09 1:07
professional dan!sh 21-Mar-09 1:07 
AnswerRe: C#.windows application Problem Pin
varun.g21-Mar-09 0:27
varun.g21-Mar-09 0:27 
QuestionIdle processing Pin
saksp20-Mar-09 20:10
saksp20-Mar-09 20:10 
AnswerRe: Idle processing Pin
12Code20-Mar-09 20:30
12Code20-Mar-09 20:30 
AnswerRe: Idle processing Pin
Dominik Reichl21-Mar-09 1:40
Dominik Reichl21-Mar-09 1:40 
QuestionMedia Player Pin
Jahmelon20-Mar-09 19:44
Jahmelon20-Mar-09 19:44 

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.