ryuslash 22 Junior Poster in Training
string.Join(",", array);
ryuslash 22 Junior Poster in Training
error C2679: binary '=' : no operator found which takes a right-hand operand of type 'std::basic_istream<_Elem,_Traits>' (or there is no acceptable conversion)

on that line i have recName = getline(myFile,open);

thnx for the help once again :)

That is probably because (for as far as I know) getline returns a reference to an istream object. The 2nd argument should be the string you want to put your line in, like

string recName, recPass
      fstream myFile;
      myFile.open("C:\\loginfo");
      getline(myFile, recName);
      getline(myFile, recPass);
      myFile.close();
evilguyme commented: thnx for ur help :D +1
ryuslash 22 Junior Poster in Training
string msg = "RED ROSES AND A YELLOW ONE";
string needle = TextBox1.Text;
int offset = msg.IndexOf(needle);
			
while (offset >= 0) {
  Console.WriteLine(msg.Substring(offset - 2, 7));
  offset = msg.IndexOf(needle, offset + 1);
}

is this anything like what you mean?

kvprajapati commented: Yes! +13
ryuslash 22 Junior Poster in Training

I don't particularly notice any real slowness on ASP website (except http:\\www.asp.net) unless I'm working on development copies (since they're always compiled once you load them for the first time (in a while)

asp controls can be heavy on a page, especially if they use things like the viewstate a lot. In the end it's all output as HTML, so if you want to know how big / small asp is look at some HTML source from asp sites and some from other web development platforms (php, django, ruby, etc) and compare how much junk you see. (Junk can also be related to the person who writes the website, so even PHP websites can be as junk-filled as ASP sites)

Do's and Dont's, dunno, don't use the ViewState too much. And if you notice your website being slow even after it has compiled (so the 2nd time you look at a page and 3rd, and so on) do look at your code and see if you might be doing things you shouldn't?

sknake commented: good to know +7
ryuslash 22 Junior Poster in Training

try

until [ $(echo "$myVar" | grep -e '^[a-zA-Z]*$') ]
  do
    read - p "Enter some text" myVar
  done
Roybut commented: Thank you +1