Показать сообщение отдельно

  #5  
Старый 28.05.2008, 00:08
MaDfUn
Познающий
Регистрация: 02.02.2007
Сообщений: 78
С нами: 10142246

Репутация: 49
По умолчанию

Цитата:
Сообщение от Jes  
что-то вроде :
...
nput = null;
int c = 0;
while ((input = sr.ReadLine()) != null)
{
Код:
if ( input.indexOf("строка") > 0)
{
...
       нашли совпадение
...
}
}...
Выдаёт ошибку:
Error 1 'string' does not contain a definition for 'indexOf' and no extension method 'indexOf' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?) D:\Documents and Settings\Администратор\Мои документы\Visual Studio 2008\Projects\ConsoleApplication2\ConsoleApplicati on2\Program.cs 31 31 ConsoleApplication2
 
Ответить с цитированием