<div dir="ltr">Hudson,<div><br></div><div style>Para escrever uma linha, informe que quer fazer isso:</div><div style><br></div><div style>Set(FILE(&lt;arquivo&gt;,&lt;offset&gt;,&lt;tamanho&gt;,&lt;opções&gt;,&lt;formato&gt;)=valor)</div>

<div style><br></div><div style>Em opções, creio que queira usar al e não ad, pois:</div><div style><tt style="font-size:10pt;line-height:13pt;color:rgb(51,51,51)"><br></tt></div><div style><tt style="font-size:10pt;line-height:13pt;color:rgb(51,51,51)"><tt><b>options</b></tt><span style="font-family:Arial,Helvetica,FreeSans,sans-serif"></span><ul style="font-family:Arial,Helvetica,FreeSans,sans-serif">

<li style="font-size:10pt;line-height:13pt;margin:0px;padding:0px"><tt>l</tt> - Line mode: offset and length are assumed to be measured in lines, instead of byte offsets.</li><li style="font-size:10pt;line-height:13pt;margin:0px;padding:0px">

<tt>a</tt> - In write mode only, the append option is used to append to the end of the file, instead of overwriting the existing file.</li></ul></tt></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">

<div style><tt style="font-size:10pt;line-height:13pt;color:rgb(51,51,51)">d</tt><span style="font-size:10pt;line-height:13pt;color:rgb(51,51,51);font-family:Arial,Helvetica,FreeSans,sans-serif"> </span><span style="font-size:10pt;line-height:13pt;color:rgb(51,51,51);font-family:Arial,Helvetica,FreeSans,sans-serif">- In write mode and line mode only, <b>this option does not automatically append a newline string to the end of a value</b>. This is useful for deleting lines, instead of setting them to blank.</span></div>

<div style><span style="font-size:10pt;line-height:13pt;color:rgb(51,51,51);font-family:Arial,Helvetica,FreeSans,sans-serif"><br></span></div></blockquote><font color="#333333" face="Arial, Helvetica, FreeSans, sans-serif"><span style="line-height:17.328125px">Sds</span></font></div>

<div class="gmail_extra"><br clear="all"><div>Alexandre Alencar<br>Twitter @alexandreitpro<br><div><a href="http://blog.alexandrealencar.net/" target="_blank">http://blog.alexandrealencar.net/</a><br><a href="http://www.alexandrealencar.net/" target="_blank">http://www.alexandrealencar.net/</a></div>

<div><a href="http://www.alexandrealencar.com" target="_blank">http://www.alexandrealencar.com</a></div><div><a href="http://www.servicosdeti.com.br/" target="_blank">http://www.servicosdeti.com.br/</a></div><div>COBIT, ITIL, CSM, LPI, MCP-I<br>

<div><br></div></div></div>
<br><br><div class="gmail_quote">2013/2/18 Hudson Cardoso <span dir="ltr">&lt;<a href="mailto:hudsoncardoso@hotmail.com" target="_blank">hudsoncardoso@hotmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div><div dir="ltr">   Boa tarde colegas...<div>   Estou tentando usar a funcao de anexar uma linha nova num texto, via function file, e, De acordo com o site :<div><a href="https://wiki.asterisk.org/wiki/display/AST/Function_FILE" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Function_FILE</a><font face="Arial" size="3" style="font-size:12pt"><br>

</font>deveria funcionar sem problemas, so que dá erro, e não grava a string.</div><div><br></div><div><div>                Set(FILE(/etc/asterisk/test.txt)=linha1);</div><div>                Set(FILE(/etc/asterisk/test.txt,,,ad)=linha2);</div>

<div>                Set(FILE(/etc/asterisk/test.txt,,,ad)=linha3);</div><div><br></div><div>se eu fizer apenas anexando, ele coloca assim : <span style="font-size:12pt">linha1</span><span style="font-size:12pt">linha2</span><span style="font-size:12pt">linha3</span></div>

<div><span style="font-size:12pt"><br></span></div><div><span style="font-size:12pt">Mas preciso desse formato :</span></div><div><span style="font-size:12pt"><br></span></div><div>linha1</div><div>linha2</div><div>linha3</div>

<div><br></div><div>trata-se de um bug ? ou estou usando de forma errada ?</div><div><br></div><br><pre style="line-height:17px;color:rgb(42,42,42);white-space:normal">Hudson <br><a href="tel:%28048%29%208413-7000" value="+554884137000" target="_blank">(048) 8413-7000</a><br>

Para quem nao cre, nenhuma prova converte,Para aquele que cre, nenhuma prova precisa. </pre></div></div>                                               </div></div>
<br>_______________________________________________<br>
EBS MODULAR: 3 slots para combinação entre E1, GSM, FXS ou FXO;<br>
Linha de PORTEIROS IP, abrem até 2 dispositivos com acesso IP remoto;<br>
Conheça esses e outros LANÇAMENTOS KHOMP em <a href="http://www.Khomp.com" target="_blank">www.Khomp.com</a> <br>
_______________________________________________<br>
DIGIVOICE  Fabricante de Placas de Voz e Channel Bank<br>
20 anos de experiência com E1(R2/ISDN), FXS, FXO e GSM<br>
Centro Treinamento - Curso de PABX IP -  Asterisk  - Site  <a href="http://www.digivoice.com.br" target="_blank">www.digivoice.com.br</a><br>
_______________________________________________<br>
ALIGERA – Fabricante nacional de Gateways SIP-E1 para R2, ISDN e SS7.<br>
Placas de 1E1, 2E1, 4E1 e 8E1 para PCI ou PCI Express.<br>
Channel Bank – Appliance Asterisk - Acesse <a href="http://www.aligera.com.br" target="_blank">www.aligera.com.br</a>.<br>
_______________________________________________<br>
Para remover seu email desta lista, basta enviar um email em branco para <a href="mailto:asteriskbrasil-unsubscribe@listas.asteriskbrasil.org">asteriskbrasil-unsubscribe@listas.asteriskbrasil.org</a><br></blockquote></div>

<br></div>