Questions tagged as 'arquivo'

1
answer

Files For Structs / C Pointers

I have this little program and I am able to save, and load from the file to struct (not perfectly). The error is as follows: after loading the file to struct, if in the function load by printf it will correctly print all the files of the stru...
asked by 04.10.2017 / 05:20
1
answer

Write CSV file in certain line passed by parameter C #

How to write to a CSV file, in a certain line that I will receive by parameter, example of the beginning of the code: public void EscreverCSV(string caminho, int linha, string mensagemErro) { using (StreamWriter wt = new StreamWr...
asked by 03.10.2017 / 16:21
1
answer

Import library org.apache.commons.io.input from Java to Eclipse

I need to use the ReversedLinesFileReader class, which belongs to the org.apache.commons.io.input library. @TomMelo told me that I should include a dependency on this library in the pom.xml file for Maven . This is the dependency: mvnrepos...
asked by 08.10.2017 / 23:18
0
answers

Open files through the relative directory

How do I read the relative file path that is in a directory other than the python file and then open that file? For example: For file1 in the project_name / files / file1.txt directory and the python code in the project_name / src directory...
asked by 17.09.2017 / 01:44
1
answer

How to find position of the occurrence of a String in a file in JAVA?

I'm having to implement a job for college, where I need to read a text file, word for word, save it to a hash table and then, according to other words read in a second file, report the occurrence of each one of them. So far so good! The proble...
asked by 18.08.2017 / 00:00
1
answer

not importing blank lines - php [closed]

I have this code, but there must be some error. When I try to open the file the browser does not respond. $lines = file($_FILES['arquivo']['tmp_name'],FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); $fp = fopen($_FILES['arquivo']['tmp_name'...
asked by 07.08.2017 / 21:10
1
answer

How to pass information from a file to a dynamic vector of C structures?

Good afternoon! (EDITED) I'm doing a work in C language, where I have to display the information stored in a text file in the console, but it is mandatory to pass all information to% dynamic% of structures. I think I've already done somet...
asked by 07.08.2017 / 18:08
1
answer

upload php problem

Can anyone tell me why the file is not being received in the destination folder? private $id; private $entrada; private $saida; private $status; public function __construct($bd) { $this->bd = $bd; } public function construirOb...
asked by 02.08.2017 / 02:32
2
answers

File for dictionary

I'm trying to transform a file into a dictionary but it's giving the following error:    Traceback (most recent call last): File   "C: \ Users \ taynan \ AppData \ Local \ Programs \ Python \ Python36-32 \ Project   CRUD \ Interface.py ", lin...
asked by 01.08.2017 / 19:52
1
answer

Delete record in text file

I'm doing a program that consists of recording movies / series, modifying information, and deleting specified records. I'm having a hard time designing the delete and modify > First, it follows the definition of the structures of fil...
asked by 03.07.2017 / 06:14