Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Code_Guru_Cricket

Search: Search took 0.01 seconds.

  1. Re: Creating Class's and methods

    nvm i figured it out lol thanks anyway ^_^
  2. [RESOLVED] Creating Class's and methods

    So what im tyring to do is create a class named "doesstuff" and in that class i want to create a few methods.

    If i wanted to access those methods in another class in the same project how would i...
  3. Re: Need help with bracket counter for project

    WOW my ADD is cathcing up with me once again haha here's an updated version >_<
  4. Re: Need help with bracket counter for project

    I cant do anythign about what the file I will be parsing looks like...it is auto-generated code that just compiles into one big file....

    let me show you what i'm talking about with the...
  5. Re: Need help with bracket counter for project

    When I try that code...it only saves the very last instance of when it has "class" in the line as the file name.

    i.e last line with class in it (it is the last class in file) is
    public class...
  6. Re: Need help with bracket counter for project

    WOW thats amazing it works!.

    And the only thing is....how would i be able to keep the class names as the file name?

    instead of class1.cs

    persontype.cs

    and for the last...
  7. Re: Need help with bracket counter for project

    Yes, I am tryign to create a code-parser program that will take a file full of c# .NET class and output each seperate class into their own file.

    Sorry im known for not being able to convey my...
  8. Re: Need help with bracket counter for project

    Thank you for that...

    My idea is suppose to be that

    1. It will find the beginning of a class (im using the regex for this)
    2. Store all the code until it gets to the end of the class
    3....
  9. Re: Need help with bracket counter for project

    Sorry about the way the code looks....i actually do not know how to put the text into code form.

    And i tried putting those "if" statements outside of the if(starts with class) loop and it still...
  10. Re: Need help with bracket counter for project

    Hey,

    Well any/all opinion(s) are welcome.

    The only thing is, it doesnt work when I try and use that kind of counter it gives me that error message.
  11. Need help with bracket counter for project

    Hey guys!

    So so far what my program does is goes through a file that you specify and takes the lines of text between 2 keywords and saves them to a seperate file for each block of text.

    i.e
    ...
  12. Re: How to store text between two words?

    I know how to read text and move it to an array as it reads through each line.

    The only thing is i dont know how to have it store each seperate 'snippet'-each part between beginning and end into...
  13. Replies
    10
    Views
    1,610

    Re: Complicated Project NEED HELP

    Yes it was...so each time it reaches the end of a class it would jsut create the file and start over again?

    But If i have it in a while loop, wouldnt it break the loop completely?
  14. How to store text between two words?

    Say i have a text file that looks like this...


    [System]
    beginning
    line 1
    line 2
    line 3
    end
  15. Re: Print out array contents into a text file

    Thanks!

    Its actually a little easier this way i figured out:

    string[] lines = {"each","word","is","a","different","line"};
    File.WriteAllLines(@"c:\ttt.txt", lines, Encoding.Default);...
  16. Replies
    10
    Views
    1,610

    Re: Complicated Project NEED HELP

    How would i get the code to store the text for every line between the beginning and end.

    I kno the code to "mark" the beginning and "end" of a class but how would i get it to continuously store...
  17. Replies
    10
    Views
    1,610

    Re: Complicated Project NEED HELP

    Ok Thanks :)

    Once i start coding it hopefully itll work and ill let ya guys kno :)
  18. Re: Print out array contents into a text file

    Yes, I would want to print each element of the array as a different line in a text file.

    i.e--- array lines = {"Each item","in this","array will","be printed out"," as a different line"}

    so...
  19. Replies
    10
    Views
    1,610

    Re: Complicated Project NEED HELP

    Ok, i could easily put in place the brack "[]" counter.

    The only thing is once i find the beginning of a class...how would i start storing the text that is between the beginning of the class and...
  20. Replies
    10
    Views
    1,610

    Re: Complicated Project NEED HELP

    now what do you mean when you say key phrases that being and end class?

    Each class will mostly begin with "public partial class"
    and will end with the usual bracket "}"


    You mean trying to...
  21. Replies
    10
    Views
    1,610

    Complicated Project NEED HELP

    For this project i need to have the ability to analyze a file containing a number of .NET(3.5) class's from source code.. identify every class and then output each seperate class into their own text...
  22. Apply Regular Expressions to an array

    . .
  23. [RESOLVED] Print out array contents into a text file

    How would i go about printing out the contents of an array into a text file.
    I know how to print single lines into a text file but not the contents of an entire array.

    Any help is greatly...
Results 1 to 23 of 23


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center