Questions tagged as 'arquivo'

1
answer

Create an algorithm that saves the data in HD

I created a simple calendar to record a user's contacts, but the teacher asked for the data to be saved in HD to preserve the contacts even after turning off the computer. I have to write all the code using the file properties I'm looking for...
asked by 30.11.2017 / 18:19
1
answer

Read matrix of a file diagonally

Hello I have a fixed-length file that has an array of random characters. However I am having difficulty using fseek and fread to read the file diagonally. To explain the problem, I need to make a kind of hunting words that search words hor...
asked by 25.09.2017 / 20:41
2
answers

Save file data to a c ++ map

I can not read a txt file correctly and transfer it to a map in c ++. The code I've developed works only if it has no "" spaces in the txt, if it has looped and does not work. Here is the code: void dados::pesquisarProdutos(){ arq.open("pr...
asked by 28.08.2017 / 02:59
1
answer

Get path where python file is called

I created a python file and left it available to access from every location on the system, but for many applications I need the path where the python file was called by the system, but I did not find any way to get this value on the internet, so...
asked by 15.08.2017 / 19:19
1
answer

Error importing .csv data into RStudio

When I'm going to import and create a file my data to R it's error ... I tried the following path: melipona <- paste(system.file(package="dismo"), "/ex/Melipona.csv", sep=";") melipona<-read.csv(melipona,header=TRUE,sep=";") Th...
asked by 14.07.2017 / 17:04
2
answers

File reading

I need to read from a file the number of tests to be done and which tests to run. The input file is as follows: 4 //Numero de testes a serem feitos 1 LINSIMP 3 //Primeiro(1) teste que verifica se a linha 3 é simples 2 LINPOL 3 1 //...
asked by 01.07.2017 / 23:46
2
answers

Data Comparison in Files [C]

I want to make an algorithm that takes a name in an X file and see if this name exists in another file Y, if it does not exist it writes that name to a third Z file. (Basically an algorithm that points the missing ones in a attendance list). I t...
asked by 18.08.2017 / 05:33
1
answer

Read XML with Java

I'm using the following code to send a .xml via SOAP package consumirwebserviceporrequisicaoxml; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.StringWriter; import javax.xml.soap.MessageFactory;...
asked by 22.12.2016 / 19:24
2
answers

Modify in xml in multiple files

Hello, I need to modify a value inside an xml node, the problem is that I need to do this in 1300 files at one time, the value I look for inside the node can be any one, it does not matter what value it is there, just need to modify this node...
asked by 05.09.2016 / 16:29
1
answer

Count the lines of a txt file in c / c ++

In the class of files, the teacher used " EOF " to determine if the file had reached its end, but reading the FEOF ", does the two terminologies work? I tried to implement the algorithm that came with this here or this to perform...
asked by 26.11.2016 / 01:52