Click here to Skip to main content
15,892,059 members
Home / Discussions / C#
   

C#

 
GeneralRe: trying to search a text file for a certain string and display it in a richTextBox Pin
Member 1157009831-Mar-15 6:23
Member 1157009831-Mar-15 6:23 
GeneralRe: trying to search a text file for a certain string and display it in a richTextBox Pin
OriginalGriff31-Mar-15 6:36
mveOriginalGriff31-Mar-15 6:36 
GeneralRe: trying to search a text file for a certain string and display it in a richTextBox Pin
Member 1157009831-Mar-15 6:48
Member 1157009831-Mar-15 6:48 
GeneralRe: trying to search a text file for a certain string and display it in a richTextBox Pin
Member 1157009831-Mar-15 7:15
Member 1157009831-Mar-15 7:15 
GeneralRe: trying to search a text file for a certain string and display it in a richTextBox Pin
OriginalGriff31-Mar-15 8:10
mveOriginalGriff31-Mar-15 8:10 
GeneralRe: trying to search a text file for a certain string and display it in a richTextBox Pin
Member 1157009831-Mar-15 8:28
Member 1157009831-Mar-15 8:28 
GeneralRe: trying to search a text file for a certain string and display it in a richTextBox Pin
OriginalGriff31-Mar-15 8:45
mveOriginalGriff31-Mar-15 8:45 
GeneralRe: trying to search a text file for a certain string and display it in a richTextBox Pin
Member 1157009831-Mar-15 15:27
Member 1157009831-Mar-15 15:27 
If your still around I cant get thee files to assign the values of the temp file. Ill keep working on it as usual. When I assign i.toString it just names the files 1-20 in order and does not assign the actual number read from the other file.
C#

private void button2_Click(object sender, EventArgs e)
        {
            string path = @"C:Random # File.txt";
            StreamReader readtext = new StreamReader(path);
            StreamWriter writetext = new StreamWriter("write.txt");
            for (int j = 0; j < 20; j++)
            {
                string readmetext = readtext.ReadLine();<br />
                writetext.WriteLine(Convert.ToInt32(readmetext));

<pre>
        }//C:\Users\grantlinhart\Documents\Visual Studio 2013\Projects\InputOut\InputOut
        writetext.Close();
        readtext.Close();
        StreamReader rt = new StreamReader("write.txt");

        File.WriteAllText(@"C:\Users\grantlinhart\Documents\Visual Studio 2013\Projects\InputOut\InputOut\bin\Debug\temp\" 
            + i.ToString("0000") + ".txt", i.ToString());

        MessageBox.Show("temp created");</pre>

GeneralRe: trying to search a text file for a certain string and display it in a richTextBox Pin
OriginalGriff31-Mar-15 22:00
mveOriginalGriff31-Mar-15 22:00 
GeneralRe: trying to search a text file for a certain string and display it in a richTextBox Pin
Member 115700981-Apr-15 6:17
Member 115700981-Apr-15 6:17 
GeneralRe: trying to search a text file for a certain string and display it in a richTextBox Pin
OriginalGriff1-Apr-15 6:59
mveOriginalGriff1-Apr-15 6:59 
GeneralRe: trying to search a text file for a certain string and display it in a richTextBox Pin
Member 115700981-Apr-15 9:24
Member 115700981-Apr-15 9:24 
GeneralRe: trying to search a text file for a certain string and display it in a richTextBox Pin
Member 115700981-Apr-15 11:54
Member 115700981-Apr-15 11:54 
GeneralRe: trying to search a text file for a certain string and display it in a richTextBox Pin
Member 1157009831-Mar-15 6:26
Member 1157009831-Mar-15 6:26 
GeneralRe: trying to search a text file for a certain string and display it in a richTextBox Pin
Member 1157009831-Mar-15 5:01
Member 1157009831-Mar-15 5:01 
QuestionSplit list to two gridview columns in C# winforms Pin
arsale31-Mar-15 3:27
arsale31-Mar-15 3:27 
AnswerRe: Split list to two gridview columns Pin
Eddy Vluggen31-Mar-15 7:31
professionalEddy Vluggen31-Mar-15 7:31 
GeneralRe: Split list to two gridview columns Pin
arsale31-Mar-15 10:46
arsale31-Mar-15 10:46 
GeneralRe: Split list to two gridview columns Pin
Eddy Vluggen31-Mar-15 13:03
professionalEddy Vluggen31-Mar-15 13:03 
GeneralRe: Split list to two gridview columns Pin
arsale31-Mar-15 23:20
arsale31-Mar-15 23:20 
GeneralRe: Split list to two gridview columns Pin
Eddy Vluggen31-Mar-15 23:41
professionalEddy Vluggen31-Mar-15 23:41 
GeneralRe: Split list to two gridview columns Pin
arsale31-Mar-15 23:58
arsale31-Mar-15 23:58 
GeneralRe: Split list to two gridview columns Pin
arsale1-Apr-15 0:09
arsale1-Apr-15 0:09 
GeneralRe: Split list to two gridview columns Pin
Eddy Vluggen1-Apr-15 0:24
professionalEddy Vluggen1-Apr-15 0:24 
GeneralRe: Split list to two gridview columns Pin
arsale1-Apr-15 0:28
arsale1-Apr-15 0:28 

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.