User contributions for Lettify

Jump to navigation Jump to search
Search for contributionsExpandCollapse
⧼contribs-top⧽
⧼contribs-date⧽
(newest | oldest) View (newer 50 | ) (20 | 50 | 100 | 250 | 500)

23 December 2023

20 December 2023

  • 20:1520:15, 20 December 2023 diff hist +20 m FileWritePortuguese version indexed current
  • 20:1520:15, 20 December 2023 diff hist +2,190 N PT-BR/fileWriteCreated page with "__NOTOC__ {{BR/Funcao compartilhada}} Escreve uma ou mais strings para um determinado arquivo, iniciando na posição de leitura/gravação atual. A posição avança de acordo com o número de bytes que estiver sendo escrito. ==Sintaxe== <syntaxhighlight lang="lua"> int fileWrite ( file theFile, string string1 [, string string2, string string3 ...]) </syntaxhighlight> {{PT-BR/POO||file:write}} ===Argumentos necessários=== *'''theFile:''' O '''arquivo''' no qual..." current
  • 20:0320:03, 20 December 2023 diff hist +77 m FileSetPosPortuguese version indexed current
  • 20:0320:03, 20 December 2023 diff hist +1,588 N PT-BR/fileSetPosCreated page with "__NOTOC__ {{BR/Funcao compartilhada}} Define a posição atual para leitura/gravação no arquivo. ==Sintaxe== <syntaxhighlight lang="lua"> int fileSetPos ( file theFile, int offset ) </syntaxhighlight> {{PT-BR/POO||file:setPos|pos|PT-BR/fileGetPos}} ===Argumentos necessários=== *'''theFile:''' O '''arquivo''' que você quer mudar a posição de leitura/gravação. *'''offset:''' A nova posição. Este é o número de bytes partindo do início do arquivo. Se est..." current
  • 19:5119:51, 20 December 2023 diff hist +21 m FileRenamePortuguese version indexed current
  • 19:5019:50, 20 December 2023 diff hist +1,889 N PT-BR/fileRenameCreated page with "__NOTOC__ {{BR/Funcao compartilhada}} Renomeia o arquivo que especificar. {{BR/Nota|Com esta função você também pode mover determinado arquivo para um lugar diferente, seja uma pasta diferente no resource atual ou até mesmo para a pasta de um outro resource. Mas para fazer isso o resource deve ter a seguinte permissão da ACL definida para ''true'': 'ModifyOtherObjects'.}} ==Sintaxe== <syntaxhighlight lang="lua"> bool fileRename ( string filePath, string newFileP..." current
  • 19:4619:46, 20 December 2023 diff hist +18 m Template:BR/NotaNo edit summary current
  • 19:4619:46, 20 December 2023 diff hist +1 m Template:PT-BR/MessageBoxNo edit summary current
  • 19:3719:37, 20 December 2023 diff hist +19 m FileReadPortuguese version indexed current
  • 19:3719:37, 20 December 2023 diff hist +1,892 N PT-BR/fileReadCreated page with "__NOTOC__ {{BR/Funcao compartilhada}} Faz a leitura de uma especificada quantidade de bytes de um determinado arquivo, começando em sua posição atual de leitura/gravação, e retorna o valor como uma ''string''. ==Sintaxe== <syntaxhighlight lang="lua"> string fileRead ( file theFile, int count ) </syntaxhighlight> {{PT-BR/POO||file:read}} ===Argumentos necessários=== *'''theFile:''' O '''arquivo''' que deseja fazer a leitura. Use fileOpen p..." current
  • 19:2519:25, 20 December 2023 diff hist +19 m FileOpenPortuguese version indexed current
  • 19:2519:25, 20 December 2023 diff hist +4,414 N PT-BR/fileOpenCreated page with "__NOTOC__ {{BR/Funcao compartilhada}} Abre um arquivo existente para leitura e gravação. {{BR/Nota|Para prevenir perdas de memórias, garanta que cada execução bem sucedida de fileOpen tenha um fileClose para fechar o arquivo aberto.}} {{BR/Tip|As funções que manipulam arquivos não devem ser utilizadas para implementar arquivos de configuração. É recomendado usar as Shared_Scripting_Functions#XML_functions|funções XM..." current
  • 19:0419:04, 20 December 2023 diff hist +20 m FileIsEOFPortuguese version indexed current
  • 19:0419:04, 20 December 2023 diff hist +1,816 N PT-BR/fileIsEOFCreated page with "__NOTOC__ {{BR/Funcao compartilhada}} Verifica se a posição atual no arquivo está no fim dele. {{BR/Nota|Devido às restrições subjacentes da API C, esta função pode retornar '''false''' até que seja feita uma tentativa de leitura além do final do arquivo.}} ==Sintaxe== <syntaxhighlight lang="lua"> bool fileIsEOF ( file theFile ) </syntaxhighlight> {{PT-BR/POO||file:isEOF|eof}} ===Argumentos necessários=== *'''theFile:''' O '''arquivo''' que você quer..." current
  • 18:5518:55, 20 December 2023 diff hist +78 m FileGetSizePortuguese version indexed current
  • 18:5518:55, 20 December 2023 diff hist +1,161 N PT-BR/fileGetSizeCreated page with "__NOTOC__ {{BR/Funcao compartilhada}} Retorna o tamanho total (em bytes) de determinado arquivo. ==Sintaxe== <syntaxhighlight lang="lua"> int fileGetSize ( file theFile ) </syntaxhighlight> {{PT-BR/POO||file:getSize|size}} ===Argumentos necessários=== *'''theFile:''' o '''arquivo''' que você deseja obter o tamanho total. ===Retorno=== Retorna o tamanho do arquivo se tiver sido executado com sucesso, ou '''false''' se tiver ocorrido algum erro (ex.: um '''arqui..." current
  • 18:5118:51, 20 December 2023 diff hist +77 m FileGetPosPortuguese version indexed current
  • 18:5118:51, 20 December 2023 diff hist +1,429 N PT-BR/fileGetPosCreated page with "__NOTOC__ {{BR/Funcao compartilhada}} Retorna a posição atual na leitura/gravação de um determinado arquivo. ==Sintaxe== <syntaxhighlight lang="lua"> int fileGetPos ( file theFile ) </syntaxhighlight> {{PT-BR/POO||file:getPos|pos|PT-BR/fileSetPos}} ===Argumentos necessários=== *'''theFile:''' o '''arquivo''' que você deseja obter a posição. ===Retorna=== Retorna a posição do arquivo, ou ''false'' se tiver ocorrido algum erro (ex.: um '''arquivo''' inv..." current
  • 18:4318:43, 20 December 2023 diff hist +22 m FileGetPathPortuguese version indexed current
  • 18:4318:43, 20 December 2023 diff hist +1,069 N PT-BR/fileGetPathCreated page with "__NOTOC__ {{BR/Funcao compartilhada}} {{PT-BR/New feature/item|3.0153|1.5.3|7446| Esta função retorna o caminho de um determinado arquivo. }} ==Sintaxe== <syntaxhighlight lang="lua"> string fileGetPath ( file theFile ) </syntaxhighlight> {{PT-BR/POO||file:getPath|path}} ===Argumentos necessários=== *'''theFile:''' O '''arquivo''' que você quer obter o caminho. ===Retorno=== Retorna uma ''string'' representando o caminho do arquivo, ''false'' se um arquivo inv..." current
  • 18:3018:30, 20 December 2023 diff hist +26 m FileGetContentsPortuguese version indexed current
  • 18:3018:30, 20 December 2023 diff hist +1,977 N PT-BR/fileGetContentsCreated page with "__NOTOC__ {{BR/Funcao compartilhada}} {{PT-BR/Added feature/item|1.6.1|1.6.0|21938| Faz a leitura de todo o conteúdo do arquivo, opcionalmente verifica o arquivo lido calculando e comparando a soma de verificação com o que é esperado, e retorna o conteúdo em formato de ''string''. A posição do cursor (caret) do arquivo não é modificada pelas execuções dessa função. }} Por favor note que sempre que você habilitar SD #22 e #23 no seu servidor, você não es..." current
  • 18:1718:17, 20 December 2023 diff hist +1,670 N Template:PT-BR/Added feature/itemCreated page with "<includeonly>{{#ifexpr: ({{{1|}}}) = {{Next Stable Version}} and ({{{2|}}}) = {{Current Stable Version}} |<div style='border: 2px solid #1b2027; border-radius: 10px; margin: 14px 0; overflow: hidden'><div style='background: #1b2027; color: #fff; font-weight: bold; padding: 4px 8px'><span style="color: #fff; text-decoration: underline">BETA</span>: NOVO RECURSO (BUILD: {{{2}}} {{r|{{{3}}}}})</div><div style='padding: 4px 8px'>{{{4}}}</div></div> |{{#ifex..." current
  • 18:1418:14, 20 December 2023 diff hist +76 m FileFlushPortuguese version indexed current
  • 18:1418:14, 20 December 2023 diff hist +1,590 N PT-BR/fileFlushCreated page with "__NOTOC__ {{BR/Funcao compartilhada}} Força a execução de gravações pendentes no disco. fileWrite não grava diretamente no disco, mas coloca os dados em um buffer temporário; só quando existe dados o suficiente nesse buffer é que as informações são gravadas no disco. Execute essa função se você precisar que os dados sejam gravados no instante em que chamar, sem precisar fechar o arquivo que estiver aberto com as gravações pendentes...." current
  • 17:5917:59, 20 December 2023 diff hist +21 m FileExistsPortuguese version indexed current
  • 17:5917:59, 20 December 2023 diff hist +2,937 N PT-BR/fileExistsCreated page with "__NOTOC__ {{BR/Funcao compartilhada}} Esta função verifica se um determinado arquivo existe em um resource. ==Sintaxe== <syntaxhighlight lang="lua"> bool fileExists ( string filePath ) </syntaxhighlight> {{PT-BR/POO|Esta é uma função estática abaixo da classe File.|File.exists}} ===Argumentos necessários=== *'''filePath:''' O caminho do arquivo a ser criado seguindo o seguinte formato: '''":resourceName/path"'''. '''resourceName''' é o nome do..." current
  • 17:4517:45, 20 December 2023 diff hist +21 m FileDeletePortuguese version indexed current
  • 17:4517:45, 20 December 2023 diff hist +1,770 N PT-BR/fileDeleteCreated page with "__NOTOC__ {{BR/Funcao compartilhada}} Deleta um determinado arquivo. ==Sintaxe== <syntaxhighlight lang="lua"> bool fileDelete ( string filePath ) </syntaxhighlight> {{PT-BR/POO|Esta é uma função estática abaixo da classe File.|File.delete}} ===Argumentos necessários=== *'''filePath:''' O caminho do arquivo para deletar no seguinte formadt: '''":resourceName/path"'''. ''resourceName'' é o nome do resource do arquivo que vai estar lá, e ''path''..." current
  • 17:3517:35, 20 December 2023 diff hist +2,598 N PT-BR/fileCopyCreated page with "{{BR/Funcao compartilhada}} __NOTOC__ Esta função copia um arquivo. {{BR/Nota|As funções que manipulam arquivos não devem ser utilizadas para implementar arquivos de configuração. É recomendado usar as funções XML.}} {{BR/Tip|Se você não quiser compartilhar o conteúdo do arquivo criado com outros servidores, nomeie o caminho do arquivo com '''@''' no início. Veja a página filepath para entender melhor.}} ==..." current
  • 17:3517:35, 20 December 2023 diff hist +103 m FileCopyPortuguese version indexed current
  • 17:2617:26, 20 December 2023 diff hist 0 m PT-BR/fileCreateNo edit summary current
  • 17:2617:26, 20 December 2023 diff hist 0 m PT-BR/fileCreateNo edit summary
  • 17:2417:24, 20 December 2023 diff hist +20 m FileCloseNo edit summary current
  • 17:2417:24, 20 December 2023 diff hist +1,263 N PT-BR/fileCloseCreated page with "__NOTOC__ {{BR/Funcao compartilhada}} Fecha um '''arquivo''' obtido por fileCreate ou fileOpen. ==Sintaxe== <syntaxhighlight lang="lua"> bool fileClose ( file theFile ) </syntaxhighlight> {{PT-BR/POO||file:close}} ===Argumentos necessários=== *'''theFile:''' O '''arquivo''' que quer fechar. ===Retorno=== Retorna ''true'' se o arquivo tiver sido fechado com sucesso, ''false'' caso contrário. ==Exemplo== Este exemplo cria u..." current
  • 17:2317:23, 20 December 2023 diff hist +252 m Template:PT-BR/File functionsNo edit summary current
  • 17:2217:22, 20 December 2023 diff hist +65 m PT-BR/fileCreateNo edit summary
  • 17:1517:15, 20 December 2023 diff hist +21 m FileCreateindexing translated page current
  • 17:1317:13, 20 December 2023 diff hist +3,337 N PT-BR/fileCreateCreated page with "__NOTOC__ {{BR/Funcao compartilhada}} Cria um novo arquivo em um diretório do resource. Se já existir algum arquivo com o nome e caminho especificado, então haverá uma substituição para este novo arquivo vazio criado. {{BR/Nota|Para prevenir perdas de memória, certifique que está fechando o arquivo com fileClose depois de aberto e trabalhado com esse arquivo.}} {{BR/Nota|As funções que manipulam arquivos não devem ser utilizadas para implementar arquivos..."
  • 17:1317:13, 20 December 2023 diff hist +546 N Template:PT-BR/File functionsCreated page with "<ul> <li>fileClose</li> <li>fileCopy</li> <li>fileCreate</li> <li>fileDelete</li> <li>fileExists</li> <li>fileFlush</li> {{PT-BR/New items|3.0161|1.6.0| <li>fileGetContents</li> |21938}} {{PT-BR/New items|3.0153|1.5.3| <li>fileGetPath</li> |7446}} <li>fileGetPos</li> <li>fileGetSize</li> <li>fileIsEOF</li> <li>fileOpen</li> <li>fileRead</li> <li>fileRename</li> <li>fileSetPos</li> <li>fileWrit..."
  • 16:4316:43, 20 December 2023 diff hist +12 m Template:PT-BR/New feature/itemNo edit summary current
  • 16:4216:42, 20 December 2023 diff hist −36 m Template:PT-BR/New feature/itemNo edit summary
  • 16:3416:34, 20 December 2023 diff hist +13 m Template:New feature/itemNo edit summary current
  • 16:2316:23, 20 December 2023 diff hist +163 N Template:BR/TipCreated page with "{{PT-BR/MessageBox| bordercolorhex = 98fb98 | bgcolorhex = ceffd3 | image = File:tip-ptbr.png| imageSize = 24px| message = '''Dica:''' {{{1}}} | }}" current
  • 16:2216:22, 20 December 2023 diff hist +68 m Template:PT-BR/MessageBoxNo edit summary
  • 16:1716:17, 20 December 2023 diff hist 0 N File:Tip-ptbr.pngNo edit summary current
(newest | oldest) View (newer 50 | ) (20 | 50 | 100 | 250 | 500)