Questions tagged as 'arquivo'

2
answers

Directory Emphasis

I'm having directory localization problem when it involves a file or folder with accent. Here's the snippet below where I try to capture the size of the file: $filepath = "$novocaminho".utf8_encode($arquivo); $tamanho = filesize("$filepath");...
asked by 17.08.2017 / 19:48
1
answer

File close

I need to leave the file free, without being in use because it is barring. Here is the code: StringWriter sw = new StringWriter(); XmlTextWriter tw = new XmlTextWriter(sw); XmlSerializerNamespaces xsn = new XmlSerializerNamespaces(); xsn.Add(...
asked by 18.08.2017 / 14:09
1
answer

Take a network file in java

I was able to open a file and put it in a Jlabel on the machine where I'm developing. But when I put the application on the network the machine that is on the network, it does not find the file. Is it possible to get the file from a networked ma...
asked by 05.07.2017 / 22:49
1
answer

Error when trying to get data from a .txt file and move to a queue in C?

I can open and move through the file the error happens when I try to point to the beginning or end of the queue, someone tell me if the pointers are correct typedef struct lista { int info; char infoP; struct lista* prox; }Lista; typedef stru...
asked by 11.04.2017 / 20:51
1
answer

Python returns "dead" when trying to read json 240mb [closed]

The problem occurs on a final CentOS server version 6.8. The same script with another smaller file works perfectly. Test done in Ubuntu 16.04 the process occurs successfully. Any solution? Follow the code below. gist code     
asked by 20.04.2017 / 15:16
1
answer

How to copy the contents of two files into a third file in c?

I need to create a file that is the copy of the contents of two other files (already exist), the user will enter the name of these two files. In my case, the first file contains: "hi, banana, cheese", and the second: "jelly, ice cream". Apparent...
asked by 11.06.2017 / 05:15
1
answer

How to open file with window.open in a post?

My controller returns two file types: pdf and excel. return File(stream, "application/pdf"); return File(new MemoryStream(ep.GetAsByteArray()), "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", $"Relatorio.xlsx"); When t...
asked by 02.02.2017 / 17:04
2
answers

Java File Write Difference

I would like to know the difference in these two methods of writing to files. Path path = Paths.get("E:/documentos/texte.txt"); Charset utf8 = StandardCharsets.UTF_8; try(BufferedWriter escrever = Files.newBufferedWriter(path, utf8)) { e...
asked by 21.11.2016 / 19:03
1
answer

Reading a text file

I need to deal with a 3-line file with the following structure: nome data horário To read this method I use the following commands: BufferedReader leitor = new BufferedReader(new FileReader("dados/dados.txt")); ArrayList<String> da...
asked by 23.08.2016 / 17:24
1
answer

List and file help

Well, I need to pass a linked list to a file and have made a function for it but I can not. In addition I have already done several tests and I could not. #include <stdio.h> #include <stdlib.h> typedef struct celulaLista { int info...
asked by 04.03.2016 / 02:09