Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
N

Nettai

@Nettai
About
Posts
14
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • reading the data values in textfile
    N Nettai

    thanks man....i got it....

    " Ella Pugalum iraivan oruvanukkae-A R Rahman "

    C#

  • reading the data values in textfile
    N Nettai

    .txt format..with full of image intensity values from 0 to 16000

    " Ella Pugalum iraivan oruvanukkae-A R Rahman "

    C#

  • reading the data values in textfile
    N Nettai

    thanks for ur reply...i tried what u said...even after it is not working...i know that file.copy method...but i want to deal with the matrix row by row...Is there any other way to deal with these datas...Already i posted one message related to this... http://www.codeproject.com/script/Forums/View.aspx?fid=1649&select=2973846&fr=151&df=90&mpp=25&noise=3&sort=Position&view=Quick#xx2973846xx[^] In that program ,i couldn't get the correct output..May be,i am thinking that Readline method is not the correct approach..Is there any other way to solve this problem

    " Ella Pugalum iraivan oruvanukkae-A R Rahman "

    C#

  • reading the data values in textfile
    N Nettai

    i am having a text file of 10*10 integer datas...i am reading and writing into another textfile using readline method...but in this program i did some mistake...i couldn't get the output file with datas...here is the program

    private void button1_Click(object sender, EventArgs e)
    {
    try
    {
    string path = "c:\\Vicky\\DATAS\\matrix.txt";
    string path2 = "c:\\Vicky\\DATAS\\copy.txt";

                FileStream fs = new FileStream(path, FileMode.Open, FileAccess.Read);
                StreamReader sr = new StreamReader(fs);
    
                FileStream fs1 = new FileStream(path2, FileMode.Create, FileAccess.Write);
                StreamWriter sw = new StreamWriter(fs1);
    
                string line;
                while ((line = sr.ReadLine()) != null)
                {
    
                    sw.WriteLine(line);
    
                }
    
                fs.Close();
                sr.Close();
                fs1.Close();
    
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
    

    " Ella Pugalum iraivan oruvanukkae-A R Rahman "

    C#

  • help me in this program
    N Nettai

    thanks for ur reply....i don't know how file.copy() method is going to help in this program.here i am not copying the file to another path...i am just reading the the same row of every text file and copy it into new file..and u told me that this program will write 279 same files...but i am getting 279 different text files with different memory sizes....

    C# csharp help

  • help me in this program
    N Nettai

    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();
        }
    
    C# csharp help

  • [Message Deleted]
    N Nettai

    [Message Deleted]

    C#

  • recieving error in this program
    N Nettai

    thanks man....we got it.....can u explain me wat problem we did it ....explain it briefly.

    C# database data-structures help

  • recieving error in this program
    N Nettai

    i am reading datas in text file and write into another text file..but getting exception ... FileStream fs=new FileStream("C:\\Vicky\\DATAS\\1.txt",FileMode.OpenOrCreate,FileAccess.Write); StreamWriter sw = new StreamWriter(fs); FileStream fs1 = new FileStream("c:\\one.txt", FileMode.Open, FileAccess.Read); StreamReader sr = new StreamReader(fs1); string[] s = new string[500]; for(int i = 0; i <= 500; i++) { s[i] = sr.ReadLine(); } for (int j = 0; j <= 500; j++) { sw.WriteLine(s[j]); } sw.Close(); sr.Close(); fs.Close(); fs1.Close(); error is: Index was outside the bounds of the array.in s[i]=sr.readline().....

    C# database data-structures help

  • implement ray tracing algorithm in c#
    N Nettai

    thanks for ur reply....we r working on computed tomography project.....my part is 3d visualization.... i am having set of 2d images..somewhere i got books related to 3d visualization.....there they mentioned volume rendering is the technique used for 3d visualization ....thuts why i am asking here bout that....

    C# csharp algorithms data-structures tutorial

  • implement ray tracing algorithm in c#
    N Nettai

    i am having set of 2d images .....how to stack this 2d images to view 3d image......using volume rendering method ...how to implement in c# ..

    C# csharp algorithms data-structures tutorial

  • stacking of 2d images
    N Nettai

    i am doing project in computed tomography.....i have 2d images of full hand....i have to stack the 2d images to visualize the full hand

    C# algorithms data-structures help

  • stacking of 2d images
    N Nettai

    i am having set of 2d images....and i want to stack those images to visualize 3d image..i didn't get any idea.....i was searching in google,but i couldn't get exact details.....if anyone help me by giving any article or idea related to this......

    C# algorithms data-structures help

  • ALGORITHMS FOR SUPERVISED LEARNING TECHNIQUE
    N Nettai

    I am a student of final year MCA doing a project on intelligent tutoring systems ,i dont know which algorithm to use that will suit best to my project.... help me!

    Algorithms algorithms help learning
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups