<?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=8239&amp;type=atom" />
	<updated>2013-04-16T07:20:26Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=8239</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удаление определенных строк в файле]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=71428#p71428" />
			<content type="html"><![CDATA[<p>Спасибо огромное, да так получилось.</p>]]></content>
			<author>
				<name><![CDATA[vernikov1]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29954</uri>
			</author>
			<updated>2013-04-16T07:20:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=71428#p71428</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удаление определенных строк в файле]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=71407#p71407" />
			<content type="html"><![CDATA[<p>Желательно бы знать кодировку файла и формат перевода строки — `r`n или `n.<br />Удалить 2 первые строки попробуйте так:<br /></p><div class="codebox"><pre><code>file = C:\файлы\miranda\ahk\ahk\44445.txt
FileRead, text, %file%
text := RegexReplace(text, &quot;^.*`r`n.*`r`n&quot;)
FileDelete, %file%
FileAppend, %text%, %file%</code></pre></div>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2013-04-15T16:00:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=71407#p71407</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удаление определенных строк в файле]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=71401#p71401" />
			<content type="html"><![CDATA[<p>Беру 1 строку, но она не получается перезаписать файл. </p><div class="codebox"><pre><code>

FileRead, files, *t C:\файлы\miranda\ahk\ahk\44445.txt

Loop, parse, files, `n, `r

{

    if a_index = 1 
    stroka1 = %A_LoopField%
    
    else
     {
               
     }
}


FileDelete, %stroka1% , %files% --  явно не верно....
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[vernikov1]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29954</uri>
			</author>
			<updated>2013-04-15T15:29:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=71401#p71401</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удаление определенных строк в файле]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=71400#p71400" />
			<content type="html"><![CDATA[<p>Ну прям весенняя напасть школоло.<br />Хотят всё сразу готовое.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2013-04-15T15:26:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=71400#p71400</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удаление определенных строк в файле]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=71398#p71398" />
			<content type="html"><![CDATA[<p>Просто, как первую строку удалить и перезаписать в этот же файл данные.... Любой пример, у меня переписать не получается...&nbsp; Саратов прошу не отвечать в теме.</p>]]></content>
			<author>
				<name><![CDATA[vernikov1]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29954</uri>
			</author>
			<updated>2013-04-15T15:18:25Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=71398#p71398</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удаление определенных строк в файле]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=71397#p71397" />
			<content type="html"><![CDATA[<p>Спасибо, Саратов. Огромное.</p>]]></content>
			<author>
				<name><![CDATA[vernikov1]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29954</uri>
			</author>
			<updated>2013-04-15T15:17:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=71397#p71397</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удаление определенных строк в файле]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=71396#p71396" />
			<content type="html"><![CDATA[<p><a href="http://www.script-coding.com/AutoHotkey/FileRead.html">FileRead</a><br /><a href="http://www.script-coding.com/AutoHotkey/FileDelete.html">FileDelete</a><br /><a href="http://www.script-coding.com/AutoHotkey/RegExReplace.html">RegExReplace</a><br /><a href="http://www.script-coding.com/AutoHotkey/FileAppend.html">FileAppend</a></p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2013-04-15T15:12:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=71396#p71396</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Удаление определенных строк в файле]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=71391#p71391" />
			<content type="html"><![CDATA[<p>Не подскажите как можно из файла (содержит 5 строк)</p><p>Тест1<br />Тест2<br />…..<br />Тест 5</p><p>Удалить первые 2 строки, переписать этот файл. Что бы он содержал уже только 3 оставшиеся строки.</p>]]></content>
			<author>
				<name><![CDATA[vernikov1]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29954</uri>
			</author>
			<updated>2013-04-15T14:08:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=71391#p71391</id>
		</entry>
</feed>
