<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Как узнать количество строк в файле?]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=5945&amp;type=atom" />
	<updated>2018-10-21T18:35:59Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=5945</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как узнать количество строк в файле?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=129346#p129346" />
			<content type="html"><![CDATA[<p>Замените StrReplace на RegexReplace.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2018-10-21T18:35:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=129346#p129346</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как узнать количество строк в файле?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=129345#p129345" />
			<content type="html"><![CDATA[<p>Если не получится, значит и подсчитывать нельзя)). А если подсчитывать без StrReplace, но как-то иначе по рег. шаблону?</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2018-10-21T17:49:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=129345#p129345</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как узнать количество строк в файле?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=129344#p129344" />
			<content type="html"><![CDATA[<p>Можно, только не получится.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2018-10-21T16:54:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=129344#p129344</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как узнать количество строк в файле?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=129334#p129334" />
			<content type="html"><![CDATA[<p>Можно ли подсчитывать, используя StrReplace с регулярным выражением? —<br /></p><div class="codebox"><pre><code>all =
(
&lt;div id=&quot;1&quot;&gt;&lt;div id=&quot;2&quot;&gt;&lt;div id=&quot;3&quot;&gt;&lt;div id=&quot;4&quot;&gt;&lt;div id=&quot;5&quot;&gt;&lt;div id=&quot;6&quot;&gt;
&lt;div id=&quot;7&quot;&gt;
&lt;div id=&quot;8&quot;&gt;
)

StrReplace(all, &quot; id=&quot;&quot;\d+&quot;&quot;&quot;,, Count)
msgbox % Count</code></pre></div>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2018-10-21T13:32:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=129334#p129334</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как узнать количество строк в файле?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125121#p125121" />
			<content type="html"><![CDATA[<p>Проще:<br /></p><div class="codebox"><pre><code>Src=
(
568588484w8446846846
http://forum.scrip&lt;div class=&quot;row&quot;t-coding.com/post.php?fid=13
http://forum.scrip&lt;div class=&quot;row&quot;t-coding.com/post.php?fid=13
568588484w8446846846
568588484w8446846846
http://forum.script-coding.com/post.ph&lt;div class=&quot;row&quot;p?fid=13
http://for&lt;div class=&quot;row&quot;um.script-coding.com/post.php?fid=13
568588484w8446846846
)

StrReplace(Src, &quot;&lt;div class=&quot;&quot;row&quot;&quot;&quot;,, Count)
MsgBox % Count </code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2018-05-05T20:27:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125121#p125121</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как узнать количество строк в файле?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125119#p125119" />
			<content type="html"><![CDATA[<p>)).<br /></p><div class="codebox"><pre><code>Src=
(
568588484w8446846846
http://forum.scrip&lt;div class=&quot;row&quot;t-coding.com/post.php?fid=13
http://forum.scrip&lt;div class=&quot;row&quot;t-coding.com/post.php?fid=13
568588484w8446846846
568588484w8446846846
http://forum.script-coding.com/post.ph&lt;div class=&quot;row&quot;p?fid=13
http://for&lt;div class=&quot;row&quot;um.script-coding.com/post.php?fid=13
568588484w8446846846
)
Src := StrReplace(Src, &quot;&lt;div class=&quot;&quot;row&quot;&quot;&quot;, &quot;&lt;div class=&quot;&quot;row&quot;&quot;&quot;, Count)

MsgBox % Count</code></pre></div>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2018-05-05T20:21:19Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125119#p125119</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как узнать количество строк в файле?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125118#p125118" />
			<content type="html"><![CDATA[<p>А в чём сложность?<br /><a href="https://autohotkey.com/docs/commands/StringReplace.htm">https://autohotkey.com/docs/commands/StringReplace.htm</a></p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2018-05-05T20:07:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125118#p125118</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как узнать количество строк в файле?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125115#p125115" />
			<content type="html"><![CDATA[<p>Как узнать количество строк, содержащих «<span style="color: blue"><strong>&lt;div class=&quot;row&quot;</strong></span>»? —</p><div class="codebox"><pre><code>Src=
(
568588484w8446846846
http://forum.scrip&lt;div class=&quot;row&quot;t-coding.com/post.php?fid=13
568588484w8446846846
568588484w8446846846
http://forum.script-coding.com/post.ph&lt;div class=&quot;row&quot;p?fid=13
http://for&lt;div class=&quot;row&quot;um.script-coding.com/post.php?fid=13
568588484w8446846846
)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2018-05-05T19:28:25Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125115#p125115</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как узнать количество строк в файле?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=49452#p49452" />
			<content type="html"><![CDATA[<p>Так верно.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2011-06-26T16:38:23Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=49452#p49452</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как узнать количество строк в файле?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=49449#p49449" />
			<content type="html"><![CDATA[<p>Тогда так?<br /></p><div class="codebox"><pre><code>FileRead, out, AutoHotkey Script.ahk
loop, parse, out, `n, `r
{
	Total:=a_index
	If (A_LoopField != &quot;&quot;)
		Num++
}
MsgBox % &quot;Всего строк &quot; Total &quot;`nНе пустых &quot; Num</code></pre></div>]]></content>
			<author>
				<name><![CDATA[InFlames]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24849</uri>
			</author>
			<updated>2011-06-26T16:06:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=49449#p49449</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как узнать количество строк в файле?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=49447#p49447" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>InFlames пишет:</cite><blockquote><p>Как то так.<br /></p><div class="codebox"><pre><code>FileRead, out, AutoHotkey Script.ahk
loop, parse, out, `n, `r
{
	Total:=a_index
	If A_LoopField
		Num++
}
MsgBox % &quot;Всего строк &quot; Total &quot;`nНе пустых &quot; Num</code></pre></div></blockquote></div><p>На самом деле не совсем правильно. В таком варианте строку, содержащую единственный символ &quot;0&quot;, скрипт примет за пустую.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2011-06-26T14:43:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=49447#p49447</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как узнать количество строк в файле?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=49437#p49437" />
			<content type="html"><![CDATA[<p>Спасибо большое!</p>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2011-06-26T07:02:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=49437#p49437</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как узнать количество строк в файле?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=49436#p49436" />
			<content type="html"><![CDATA[<p>Как то так.<br /></p><div class="codebox"><pre><code>FileRead, out, AutoHotkey Script.ahk
loop, parse, out, `n, `r
{
	Total:=a_index
	If A_LoopField
		Num++
}
MsgBox % &quot;Всего строк &quot; Total &quot;`nНе пустых &quot; Num</code></pre></div>]]></content>
			<author>
				<name><![CDATA[InFlames]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24849</uri>
			</author>
			<updated>2011-06-26T06:59:21Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=49436#p49436</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Как узнать количество строк в файле?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=49435#p49435" />
			<content type="html"><![CDATA[<p>Подскажите пожалуйста как узнать сколько строк в любом текстовом файле с помощью AHK и загнать в переменную.</p>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2011-06-26T05:38:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=49435#p49435</id>
		</entry>
</feed>
