User Profile

Collapse

Profile Sidebar

Collapse
aphoorva a
aphoorva a
Last Activity: Nov 7 '11, 01:22 AM
Joined: Oct 25 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • how to split line exist in a file using a particular string

    how to split line exist in a file using (particular)str ing(ex., and ,or,etc., )
    need of c# code for the above problem statement

    mine is only working only for seperators

    thanks
    aphoorva
    See more | Go to post

  • aphoorva a
    started a topic splitting lines in a file

    splitting lines in a file

    hi,
    am trying to split lines in a file in such a way
    where ever and or dot(.) comes in a file the line should get splitted

    my code is working only for .(dot)not for (and)

    code is as shown below
    Code:
    static void Main(string[] args)
    {
      int i = 1;
      foreach (string line1 in File.ReadAllLines(@"g:/employee.txt"))
      {
        string[] srs = line1.Split('and','.');
    ...
    See more | Go to post
    Last edited by Frinavale; Oct 25 '11, 05:34 PM. Reason: Added code tags, formatted code so that it is more legible and added the ending '}' for the main method.
No activity results to display
Show More
Working...