Questions tagged as 'arquivo'

1
answer

How to create a C ranking?

How can I read and sort a text file where the information looks like this: carlos 5 lucas 20 josue 10 * The file looks like this. Saved randomly but when I read the precise information that is in the order of those who hav...
asked by 16.06.2017 / 22:10
1
answer

Problem in orderly insertion of structs into records

I'm doing a job where I have to insert structs in alphabetical order into files, where the structs are political and the files (which together form a linked list) are the parties. I'm having a hard time figuring out how to insert politicians in...
asked by 11.06.2017 / 04:51
4
answers

how to generate an xml in memory

With the code below, I generate a file and write it somewhere, however, instead of writing to disk, I wanted to generate it in memory, how do I do that? using (var context = new ClassContexto(ClassMaster.conexao())) {...
asked by 19.01.2017 / 17:47
1
answer

File Reading in Java [closed]

I'm trying to read a file ( arquivo.txt ) that is in the same folder as my class, but I run the code an error appears that did not find the file. Could someone check what's wrong? Thanks in advance. My arquivo.txt : Industria;2;...
asked by 06.06.2017 / 17:05
1
answer

Read blocks of XML tags based on a search

I have a folder where the insert logs are stored in the database. The log files follow this structure: <item xsi:type="tns:StatusResultReport"> <id xsi:type="xsd:int">1569692</id>...
asked by 20.04.2017 / 14:32
0
answers

function savefile (); exports default to downloads folder

Good morning, I would like a help, the function is exporting directly to download folder, I would like to be able to choose in which to save the file. I still can not see a solution to this functionality, thank you all who are willing to give me...
asked by 26.05.2017 / 14:15
0
answers

Error using split function and removing certain characters from a java file

The idea is to separate pieces with the split function that does not contain spaces, commas, semicolons, etc. But the function does not separate correctly, separating most of the time just the space. public String[] getTokens(String s) { S...
asked by 26.03.2017 / 20:38
0
answers

How to copy network files using C ++

I'm trying to copy a file from a server to my machine, simply the code executes, it does not return any errors, but does not copy the file. Follow the C ++ code: #include <iostream> #include <windows.h> using namespace std; in...
asked by 20.03.2017 / 12:12
0
answers

File directory

Hello, I'm doing a program in java where I need to open a file and read it. But when I'm trying to put the file path, it does not find such a file and so I get the Null Pointer Exception error. The code is as follows: public File[] returnFile...
asked by 25.03.2017 / 21:03
0
answers

Insert a same image multiple times through the input file

I'm setting up a website for a school, and I'm adopting a new feature. I created an input file for people to insert images and they, through a preview should appear in the respective pictures below. But it only works with the first frame! does n...
asked by 17.03.2017 / 15:55