Most voted "filing-cabinet" questions
A (Brazilian Portuguese) or (European Portuguese) computer file is a resource for storing information, which is available to a computer program and is usually based on some kind of durable storage. A file is durable in the sense that it remains available to programs for use after the running program has been completed.
Learn more…693 questions
Sort by count of
-
1
votes2
answers164
viewsHow do I save software versioning with GIT?
I did the project, ta all the versioning in GIT, but how can I make a kind of backup of that data? Why let’s assume I format the PC, saved the project but lost the versioning done. I searched and…
-
1
votes0
answers219
viewsFiles with extension . XLX of excel have converted to extension .xlx.crypt on my desktop where saved. What to do?
The xlx file extension in excel went to .xlx.crypt. I think it caught a virus. Would you know how to remove and not lose the files? Thanks for your help in advance
-
1
votes1
answer175
viewsHelp with list and file
Well, I need to pass a chained list to a file and I did a function for it but I can’t. Besides I’ve done several tests and I couldn’t. #include <stdio.h> #include <stdlib.h> typedef…
-
1
votes3
answers1852
viewsReading blank blank blank blank blank files
How do I avoid reading a blank line in a file, to any operating system, using the Python language?
-
1
votes1
answer229
viewsReading of text file
I need to handle 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…
-
1
votes1
answer51
viewsCreating txt file from another txt file
I have a file in this format (the zero indicates that the line has finished): -1 2 0 -2 3 0 $ -1 3 0 What do I do to identify if the file line has a $? Because I have to implement this condition to…
-
1
votes0
answers32
viewsUpload files not loading extension
Hello, I’m trying to generate the filename upado in md5();, but my file extension does not work at the time of upload, follow my class: <?php class Upload { private $_SupportedFormats =…
-
1
votes2
answers981
viewsModify xml in multiple files
Hello, Personal need to modify a value within an xml Node, the problem is that I need to do this in 1300 files at once, the value I look for inside the node can be any one, it does not make any…
-
1
votes1
answer3291
viewsHow to list all files in a folder using Python?
I am building a program that needs to know the files in its work directory. So I typed the following code. def encontrar_arq(cadena, caminho): encontrado = False # lista_arq = ls(caminho) #funcao…
-
1
votes1
answer264
viewsHow to select more than one txt file with C#
I’m writing a C# application that needs to receive more than 1 text file and display the Filename of them in a MessageBox individual for each. My question is in this import of the files, I was using…
-
1
votes2
answers840
viewsHow to know the number of files in a folder using Java?
In short, given a path that is a system folder, the return is the amount of files directly in the root of the folder (should not take into account files in subfolders). This would be used in a for…
-
1
votes2
answers636
viewsHow to create a folder named after the current date
I am trying to create a folder with the same name as the current date but simply does not create. import java.util.*; import java.io.File; public class PastaData { Date data = new Date();…
-
1
votes2
answers76
viewsJava File Writing Difference
I would like to know the difference in these two methods of Writing in files. Path path = Paths.get("E:/documentos/texte.txt"); Charset utf8 = StandardCharsets.UTF_8; try(BufferedWriter escrever =…
-
1
votes2
answers345
viewsFWRITE function is not writing in binary format in C language
I am not able to write data in binary in a file using the C language. Even using 'Wb' the output of the file are characters. How can I proceed? Here’s part of my code: void cadastrar(void) {…
-
1
votes0
answers423
viewsRead Java File with delimiter
I have the following txt file: 38461;Rui Brito;20 34561;Rui Brito;10 31231;Rui Brito;6 And the following code: ArrayList<Aluno> listaAlunos = new ArrayList<Aluno>(); public void…
-
1
votes1
answer593
viewsRead from a txt file via fscanf using vector
I have the following while(!feof(f)){ (*ptr).push_back(carro()); fscanf (f, "%d", (*ptr)[add].id); fscanf (f, "%s", (*ptr)[add].marca); add++; } Where *ptr is &vector, a vector of a car struct,…
-
1
votes0
answers172
viewsHow to copy network files using C++
I am trying to copy a file from a server to my machine, simply the code runs, does not return me any error, but does not copy the file. Follow the code C++: #include <iostream> #include…
-
1
votes2
answers4207
viewsCapture file name
I have a form that I search the path of a file in .mdb (Access database), however I wanted to know how I can limit and pick up exactly the string of the file between the last bar of the…
-
1
votes0
answers51
viewsFile directory
Hello, I am making a program in java in which I need to open a file and read it. However when I am trying to put the file path, it does not find such file and so I get Null Pointer Exception error.…
-
1
votes1
answer262
viewsPython returns "Dead" when trying to read json > 240mb
The problem occurs on a Centos server version 6.8 final. The same script with another smaller file works perfectly. Test performed in Ubuntu 16.04 the process occurs successfully. Any solution?…
-
1
votes0
answers86
viewsSave/Read large files
I’m having some difficulty in an academic project where I have to generate a certain number of records to have an X-size file. Ex.: 20gb of one .bin for so many records. My problem is how to do this…
-
1
votes0
answers186
viewsHow to read large text files on Android?
I wanted to know some tip on how to read large files on Android, as example give the GTFS (Google Transit) files that most of the time is 80 MB I am placing this data on a server (Firebase) using…
-
1
votes0
answers201
viewsOpen File in Modal Dialog
I am recovering a file given a path and would like to display the answer in a Modal. This is a snippet of HTML that calls Servlet (MSD) by passing the file path as parameter: <a class="btn-doc-sm…
-
1
votes2
answers113
viewsDenied file deletion on C#
I am using the following line to create and record: File.WriteAllText(caminho + cliente, xml); In it I write an XML and then I deal with it as follows: if (File.Exists(caminho + cliente)) {…
-
1
votes1
answer51
viewsScanner isn’t picking up all the lines
I have a file with 7 million lines, but my code takes at most 63000 and returns no error. Scanner sc2 = null; try { sc2 = new Scanner(new File("./assets/words.txt")); } catch (FileNotFoundException…
-
1
votes1
answer969
viewsGet path where python file is called
I created a python file and made it available to access from every place on the system, however, for many applications accurate the path where the python file was called by the system, but I did not…
-
1
votes2
answers189
viewsGenerate files with all permissions
I am generating *.csv files from this: BufferedWriter strW = new BufferedWriter(new FileWriter(caminhoCSV.toString())) However the generated files are only with read permission, how could you change…
-
1
votes1
answer108
viewsRead array of a file diagonally
Hello! I have a fixed-size file that has a random character array. However I’m having trouble using fseek and fread to read the file diagonally. To explain the problem, I need to do a kind of word…
-
1
votes2
answers200
viewsHow to convert text into file to number with decimals?
I have this data written in the text file "000001010" (you only have this data), but I wanted when it was for the variable to be like this 10.10. I’m reading the file data like this: var linhas =…
-
1
votes0
answers55
viewsRecover chained list of.bin file
I am programming in C and I have a code that uses a sequential list of 50 positions to store in each of its spaces the first address of several chained lists, so far so good, the problem is when I…
-
1
votes1
answer8939
viewsCount the lines of a txt file in c / c++
In file class the teacher used " EOF " to determine whether the file had reached its end, but by reading the wiki about c files, I saw that the implementation of the end check of a file is " FEOF ",…
-
1
votes1
answer576
viewsDelete files by extension
How can I delete files from a folder by extension? "Got" files with this code: string[] arquivos = Directory.GetFiles(st.path, "*.xml", SearchOption.AllDirectories); But I can’t delete…
-
1
votes1
answer139
viewsGrab all images from a subdirectory except for a folder
I’m picking up all the photos from a directory and its subsequent ones, but I wouldn’t want it to be the "Backup" folder, as I could do that? string[] Arquivos = Directory.GetFiles(PathEx, "*.*",…
-
1
votes2
answers1505
viewsSearch file path C#?
I need to find a file path .wav in C#. I can find and execute the .wav with the complete path "c: caminhox...", however, I need the application to find the file in any directory that he is. I tried…
-
1
votes1
answer830
viewsRead 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…
-
1
votes1
answer83
viewsHow to load only one line and modify it
I want to modify just one line of a file, something like that with open('arquivo.txt', 'r+') as f: for line in f.readlines(): if line == algumacoisa: line.write('textoaqui'); break f.close() I saw…
-
1
votes1
answer1181
viewsHow to close a file in Java?
I’m trying to delete a file using File, but I have the following mistake: The file is already being used by another process. I also have this error when trying to rename using Files. How can I…
-
1
votes1
answer1742
viewsHow 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()),…
-
1
votes1
answer714
viewsCSV In Ruby - Doubt
Good afternoon guys, I’m having a little trouble understanding how Ruby works with csv, I need to read a file and import the data from that file into a variable I have a file called given.txt like…
-
1
votes1
answer658
viewssave in file a return from backend
my backend controller returns a file of type xlsx to my front, this is the method that makes the return: public FileResult ListarLivrosExcel() { // Gerando minha planilha e recebendo-a using…
-
1
votes0
answers22
viewsApache how do I add file to excel spreadsheet
I would like to know how to use apache poi to add a file to the spreadsheet created by it. The file type is a . 150 KB WAV. I have read the documentation but would like to see a simple example to…
-
1
votes0
answers154
viewsInsert same image several times through input file
I’m setting up a school website, and I’m adopting a new resource. I created an input file for people to insert images and they, through a preview should trim in the respective frames below. But it…
-
1
votes0
answers80
viewsError 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, comma, point and comma, etc. But the function does not separate correctly, separating most of the time only…
-
1
votes2
answers95
viewsFunction to read file in C
What function to use in C to read file, row by row, and in each row contains different data types?
-
1
votes1
answer100
viewsError trying to grab data from a . txt file and move to a C queue?
I can open and go through the entire 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;…
-
1
votes1
answer517
viewsRead XML tag blocks based on a search
I have a folder where insert logs are stored in the database. Log files follow this structure: <item xsi:type="tns:StatusResultReport"> <id xsi:type="xsd:int">1569692</id>…
-
1
votes0
answers35
viewsFunction savefile(); exports default to downloads folder
Good morning I would like a help, the function is exporting straight to download folder, I would like to be able to choose which folder to save the file on. I still can not see a solution for this…
javascript html5 filing-cabinet javascript-events exportasked 7 years, 6 months ago André Vieira 11 -
1
votes1
answer548
viewsReading File in Java
I’m trying to read a file (arquivo.txt) which 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? I thank you in…
-
1
votes1
answer668
viewsCreate a file in another directory
I have a folder that contains my file . c, its executable and another folder called Arquivos. I need that when the function below is executed the file is created in the folder Arquivos and not in…
-
1
votes1
answer462
viewsProblem in ordered insertion code of structs (records) in files
I am doing a work in which I have to insert structs in alphabetical order in archives, in which the structs are political and the archives (which together form a chained list) are the parties. I’m…