Click here to Skip to main content
15,881,684 members
Home / Discussions / C#
   

C#

 
QuestionHow to select a specific cell? Pin
Saiyed Alam29-Apr-09 22:39
Saiyed Alam29-Apr-09 22:39 
AnswerRe: How to select a specific cell? Pin
Mycroft Holmes29-Apr-09 22:45
professionalMycroft Holmes29-Apr-09 22:45 
AnswerRe: How to select a specific cell? Pin
NickPace30-Apr-09 4:28
NickPace30-Apr-09 4:28 
QuestionSplit text file by Fixed Length Pin
yueru29-Apr-09 21:48
yueru29-Apr-09 21:48 
AnswerRe: Split text file by Fixed Length Pin
musefan29-Apr-09 21:54
musefan29-Apr-09 21:54 
GeneralRe: Split text file by Fixed Length Pin
yueru29-Apr-09 22:04
yueru29-Apr-09 22:04 
GeneralRe: Split text file by Fixed Length Pin
musefan29-Apr-09 22:10
musefan29-Apr-09 22:10 
GeneralRe: Split text file by Fixed Length Pin
yueru29-Apr-09 22:40
yueru29-Apr-09 22:40 
Yeppp I've knowed how to read
I use
 using System.IO;
namespace WindowsApplication23
{
    public partial class Form1 : Form
    {
        OpenFileDialog o;
        FileInfo info;
        public Form1()
        {
            InitializeComponent();
        }
        private void button1_Click(object sender, EventArgs e)
        {
             o = new OpenFileDialog();
            if (o.ShowDialog() == DialogResult.OK)
            {
                info = new FileInfo(o.FileName);
                label1.Text = info.ToString();
            }
        }
        private void button2_Click(object sender, EventArgs e)
        {
            StreamReader reader = info.OpenText();
            textBox1.Text = reader.ReadToEnd().ToString();
            reader.Close();
        }
    }
}


but it read all of my file I just want it
from
==lo12365=12/08/05 12.30 lo op
==lo12589=13/08/04 12.15 li oo
==lo89099=18/05/09 12.10 io io

tobe
lo12365 12/08/05 12.30 lo op
lo12589 13/08/04 12.15 li oo
lo89099 18/05/09 12.10 io io

and insert it to my table
thx in advance
GeneralRe: Split text file by Fixed Length Pin
musefan29-Apr-09 22:46
musefan29-Apr-09 22:46 
GeneralRe: Split text file by Fixed Length Pin
yueru29-Apr-09 23:16
yueru29-Apr-09 23:16 
GeneralRe: Split text file by Fixed Length Pin
musefan29-Apr-09 23:28
musefan29-Apr-09 23:28 
GeneralRe: Split text file by Fixed Length Pin
yueru29-Apr-09 23:41
yueru29-Apr-09 23:41 
GeneralRe: Split text file by Fixed Length Pin
musefan29-Apr-09 23:56
musefan29-Apr-09 23:56 
GeneralRe: Split text file by Fixed Length [modified] Pin
yueru30-Apr-09 0:09
yueru30-Apr-09 0:09 
GeneralRe: Split text file by Fixed Length Pin
musefan30-Apr-09 0:36
musefan30-Apr-09 0:36 
GeneralRe: Split text file by Fixed Length Pin
OriginalGriff30-Apr-09 1:33
mveOriginalGriff30-Apr-09 1:33 
AnswerRe: Split text file by Fixed Length Pin
N a v a n e e t h29-Apr-09 21:58
N a v a n e e t h29-Apr-09 21:58 
QuestionRe: Split text file by Fixed Length Pin
yueru29-Apr-09 22:06
yueru29-Apr-09 22:06 
AnswerRe: Split text file by Fixed Length Pin
yueru5-May-09 21:23
yueru5-May-09 21:23 
AnswerRe: Split text file by Fixed Length Pin
Mycroft Holmes29-Apr-09 21:59
professionalMycroft Holmes29-Apr-09 21:59 
AnswerRe: Split text file by Fixed Length Pin
Vasudevan Deepak Kumar29-Apr-09 22:33
Vasudevan Deepak Kumar29-Apr-09 22:33 
GeneralRe: Split text file by Fixed Length Pin
yueru29-Apr-09 23:24
yueru29-Apr-09 23:24 
AnswerRe: Split text file by Fixed Length Pin
Mbah Dhaim30-Apr-09 3:01
Mbah Dhaim30-Apr-09 3:01 
QuestionQuestion on Web serivce... Pin
Siva Koyi29-Apr-09 21:23
Siva Koyi29-Apr-09 21:23 
AnswerRe: Question on Web serivce... Pin
N a v a n e e t h29-Apr-09 21:56
N a v a n e e t h29-Apr-09 21:56 

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.