<?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=12532&amp;type=atom" />
	<updated>2017-03-07T16:00:52Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=12532</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удаление указанных строк из файла]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=113700#p113700" />
			<content type="html"><![CDATA[<p><strong>slavafedora</strong>, а зачем у вас в коде SetTimer?</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-03-07T16:00:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=113700#p113700</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удаление указанных строк из файла]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=113689#p113689" />
			<content type="html"><![CDATA[<p><strong>slavafedora</strong>, просто как-то глупо смотрится.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2017-03-07T14:31:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=113689#p113689</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удаление указанных строк из файла]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=113670#p113670" />
			<content type="html"><![CDATA[<p><strong>svoboden</strong><br />Ну автор самостоятельно догадался как удалить, я немного понял по другому и сделал на удаление других строк.<br />Если бы автор не смог сделать это самостоятельно, сказал бы о том что немного не правильно его понял и я бы исправил.</p><p>Зачем писать это еще после того как автор уже отписался что проблема решена?</p>]]></content>
			<author>
				<name><![CDATA[slavafedora]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34221</uri>
			</author>
			<updated>2017-03-07T01:18:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=113670#p113670</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удаление указанных строк из файла]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=113665#p113665" />
			<content type="html"><![CDATA[<p><strong>belyankin12</strong>, это я не вам говорю.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2017-03-06T17:54:16Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=113665#p113665</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удаление указанных строк из файла]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=113664#p113664" />
			<content type="html"><![CDATA[<p><strong>svoboden</strong>, я догадался.</p>]]></content>
			<author>
				<name><![CDATA[belyankin12]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34408</uri>
			</author>
			<updated>2017-03-06T17:47:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=113664#p113664</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удаление указанных строк из файла]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=113663#p113663" />
			<content type="html"><![CDATA[<p><strong>slavafedora</strong>, исходя из вопроса, надо вот эти строки удалить: &quot;,,,,,,,,,,&quot;, а не их оставить.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2017-03-06T17:29:15Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=113663#p113663</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удаление указанных строк из файла]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=113661#p113661" />
			<content type="html"><![CDATA[<p>Проблема решена.</p>]]></content>
			<author>
				<name><![CDATA[belyankin12]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34408</uri>
			</author>
			<updated>2017-03-06T16:46:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=113661#p113661</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удаление указанных строк из файла]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=113659#p113659" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>#Persistent

SetTimer, chatread, on

chatread:
{        
	File := A_MyDocuments &quot;\GTA San Andreas User Files\SAMP\log.txt&quot;
	StrDel := &quot;,,,,(.*) (.*),,(.*),,(.*),,(.*)&quot; ; Форма как у RegExMatch
	FileRead, All, % File
	FileOpen(File, &quot;w&quot;).Write(RegExReplace(All, &quot;(^|\R)&quot; . StrDel . &quot;|&quot; . StrDel . &quot;(\R|$)&quot;))
}
Return</code></pre></div><p>Вот так работает.</p>]]></content>
			<author>
				<name><![CDATA[slavafedora]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34221</uri>
			</author>
			<updated>2017-03-06T16:39:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=113659#p113659</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Удаление указанных строк из файла]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=113658#p113658" />
			<content type="html"><![CDATA[<p>Здравствуйте, хотя я недавно задавал вам вопрос, как удалить строку из файла, но то касалось одной строчки. Попытавшись завернуть предложенные вами решения в Loop я терплю неудачу. Потому обращаюсь к вам. Имеется текст (это лишь его часть, кол-во строк может быть любым):<br /></p><div class="codebox"><pre><code>
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,Имя Фамилия,,Должность,,Звание,,Дата назначения
,,,,,,,,,,
,,,,Andrey Bogatirenko,,Командующий армии,,Генерал,,05.02.2017
,,,,,,,,,,
,,,,Leonardo Gutierez,,Заместитель командующего армии,,Полковник,,14.01.2017
,,,,Gosha Clenov,,Заместитель командующего армии,,Полковник,,01.02.2017
</code></pre></div><p>Нужно удалить все строчки, в которых только запятые (кол-во запятых постоянно) и ещё желательно удалить строку &quot;,,,,Имя Фамилия,,Должность,,Звание,,Дата назначения&quot;, но необязательно. Подойдут любые варианты: Loop&#039;ы, переписывания файлов и прочее. Надеюсь на вашу помощь.</p>]]></content>
			<author>
				<name><![CDATA[belyankin12]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34408</uri>
			</author>
			<updated>2017-03-06T15:56:46Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=113658#p113658</id>
		</entry>
</feed>
