User Profile

Collapse

Profile Sidebar

Collapse
Robert Hodan
Robert Hodan
Last Activity: Apr 10 '12, 08:09 PM
Joined: Feb 2 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • What I'm trying to do is compare a string containing a space, to what I think (presuming I'm not using the streamreader wrong) should be the next character on a line. If the next character on the line is NOT a space, it adds it to the current string. When the string does hit a space, it adds the current word to a list, and continues, until it runs out of words.
    However;
    It freezes, gets trapped inside of this loop:

    Code:
    while(!isSpace)
    ...
    See more | Go to post

    Leave a comment:


  • Robert Hodan
    started a topic Discerning what is a space in string..?

    Discerning what is a space in string..?

    So, I'm trying to make a method that takes an input stream (from a text file), and churns out each word into it's own string, and sticks it into a list. According to my logic this should work, but (obviously) it doesn't. Any help would be appreciated :)

    Code:
    private void countWords()
            {
                bool isSpace;
                count = 0;
                //Will run as long as the files is real.
    ...
    See more | Go to post

  • Perhaps this will help.

    What I'm working on is a program that reads text files, pulls out any URL's that are in it, and opens it up in the user's default browser if possible, if not, displays them in a nice list. The part that I am working on specifically, is pulling things out from midway in a line. So for example if the line went "Visit us at www.example.com please!" Then all I would want from that is "www.example.co m"....
    See more | Go to post

    Leave a comment:


  • I think you may have misunderstood me, I mean how do I do this if I have a line of text like "This is a line of text containing a keyword right in the middle.", how would I get Streamreader to extract the keyword?
    See more | Go to post

    Leave a comment:


  • How to use Streamreader to read to and from a specific point?

    I'm trying to use the Streamreader function to pull text from a text file and make it into a string, and then place it in a list, and this works just fine for at the start of the line, but I can't figure out how to tell it to extract from a specific keyword, say "key" and end at a certain keyword, say "word" into a string. Can anyone give me a hand?
    See more | Go to post

  • Robert Hodan
    started a topic Making a Semi-Dynamic Completion counter?

    Making a Semi-Dynamic Completion counter?

    I'm attempting to make a counter to show you the progress you have made in completing the current operation, but it doesn't update... any help?

    Code:
    adder++;
    string prog = ((adder / count)*100).ToString() ;
    lblProg.Text = prog + "%";
    NOTE: Adder and count are predifined integers of different values (adder starting at 0, and count being the max).
    See more | Go to post

  • Robert Hodan
    started a topic Using the OR operator with integers?

    Using the OR operator with integers?

    I'm attempting to code a soundboard, however, due to the policies of who I am coding for, I need to create a profanity filter, currently, what I am trying to do, is create a statement that takes the currently selected index, and if it matches one of the marked profane containing indexes, it will not be played, and display a message explaining why.
    However, I get this error:
    Operator '||' cannot be applied to operands of type 'bool'...
    See more | Go to post

  • How to open a specific link(s) with Internet Explorer through C Sharp?

    Currently, what I have is
    Code:
                Process internet = new Process();
                internet.StartInfo.FileName = @"C:\Program Files\Internet Explorer\iexplore.exe";
                internet.StartInfo.Arguments = "";
                internet.Start();
    and I need it to open a specific link or links, in new windows. I have the ideology of anything is possible if you put your mind to it, but this one is just killing me....
    See more | Go to post
No activity results to display
Show More
Working...