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
-
0
votes0
answers41
viewsDirectory monitoring stops the system from responding to interactions
I have an application that monitors a certain folder and checks if there is the creation of a new file if a new file is created triggering several processes on the system. But when active monitoring…
-
0
votes1
answer40
viewsProblems in a string array of a structure
I’m having a problem with an array of strings I’m trying to access from a structure. The structure is placed in a header.h which has the following format : typedef struct { char *produtos[200000];…
-
0
votes2
answers485
viewsSave txt file with windows encoding
My application runs on a Unix OS, so my files .TXT are created in UNIX format, I need these files to be created in WINDOWS format. I need the line breaks to be in WINDOWS format r n. I’m having…
-
0
votes1
answer1609
viewsIterate in multiple text files
Good afternoon. I have the following goal: I have a series of text files and I want to create a script to iterate over all of them and count how many times certain strings appear in them. I was able…
-
0
votes0
answers283
viewsHow to get file from inside the database?
I’m using postgresql as sgdb, and I’m saving files. txt in bd, so far, all right, it’s working right, but I’m not finding a way to get the content of the txt files saved in bd, I’m using php with…
-
0
votes2
answers102
viewsError trying to submit form with AJAX file
I have the following code I implemented for testing before putting in my project: index php. <form method="post" id="formulario" enctype="multipart/form-data"> <input name="nome"…
-
0
votes1
answer99
viewsUncover partition
I’m creating an application that will run from an external hard drive. I have been researching but I haven’t found a way without using too much gambiarra to find the partition where this hard drive…
-
0
votes1
answer463
viewsread from binary file to linked list c
Good people, I’m having a problem reading information from a binary file to enter it in memory on a linked list. PERGUNTAS val; lista_perguntas * aux = original->next; lista_perguntas * base =…
-
0
votes1
answer33
viewssave text to file
I’m using this code to record to the archive: try(BufferedWriter bw = Files.newBufferedWriter(caminho, formato)){ bw.write("frase teste\n"); bw.write("outra coisa"); }catch(IOException e) {…
-
0
votes1
answer334
viewsProblems with binary search tree in C
Now reinstating my post more clearly (this is a continuation of my previous question). In the code, I try to create a binary search tree and insert elements into it. They must be saved in .txt.…
-
0
votes1
answer55
viewsComparison __FILE__ and $0
I recently saw this decision-making in a ruby code: if __FILE__ == $0 .... So I had it printed out __FILE__ and $0 separately in irb and saw that the two pass the same information, my doubts are:…
-
0
votes0
answers1290
viewsCreate/Edit file (txt) on Android
Hello... sorry if I posted in the wrong place or wrong way, because I’m new in the forum (although I always read it). Lollipop helped me a lot with the explanation: /a/48228/68502 But I have three…
-
0
votes0
answers56
viewsHow to create file on my PC, within an internal network, using PHP
I am developing a software for the company I work with and a problem has arisen: I need to create a file inside my PC that is saved using any other computer from the internal network of the company.…
-
0
votes1
answer1081
viewsProblem with file transfer via java socket
I am trying to make a client/server program that accepts more than one client and that client sends files to the server. The transfer was working properly, however when I put a while so that when…
-
0
votes1
answer60
viewsTake part of the SVG ID content with PHP
I have a file SVG and in it has several paths tagged and within the tag has the attribute id which in turn has the name of the state and also the municipality (which is what I need to take). I would…
-
0
votes1
answer65
viewsCreate dynamic structures from a text file?
I have data stored in a text file. I want to read the text file and store the data in my variables, then insert them in my function inserir_medico that will use the data to create a concatenated…
-
0
votes0
answers40
viewshow to force the download of a php file and delete it right away
I made a file with fopen(); and I need it to be downloaded on the user’s computer and deleted right away, and it is necessary that the file name is in a variable, because the file name will vary…
-
0
votes1
answer59
viewsProblem reading file
I’m writing a code in C++ and I need to read a distance file that was calculated in another algorithm made in C. This file looks something like this: 100 n (natural number) 0.0000 58.25646 7.1556…
-
0
votes1
answer82
viewsAppend to a specific line in a text file
Good morning, I have a function that makes an append in certain line of my xml file. function addInFile($file, $lineNumber, $content) { $fileTemp = "$file.bak"; $currentLine = 0; $fpRead =…
-
0
votes0
answers78
viewsRecording in C information file
So, guys, I’m doing a job that consists essentially of recording information relating to films and series in two files (one for each one). In the code section films. c i have all the functions used…
-
0
votes1
answer1149
viewsSaving txt files with Android Studio
I am having trouble saving the name typed by the user in a txt file. When I press save, it says it was created, but I can’t read. Context fileContext; public BancoDeDados(Context fileContext) {…
-
0
votes1
answer488
viewsCorrupted Latex file
I use Texstudio (Latex) and today I worked all day in a chapter of my thesis. I stopped now the night and when I came back I put it to save one more time before exporting to the cloud and to my…
-
0
votes1
answer163
viewsIO Exception error when trying to manipulate a file
I have already compiled and run the program in Netbeans and it works normally, but when I run it through the terminal always gives the IO Exception error. Is there any other way to read files…
-
0
votes0
answers486
viewsOpen files through the relative directory
How do I read the relative file path that is in a different python file directory and then open that file? For example: For archive1 in the name_project/files/file1.txt directory and the python code…
-
0
votes1
answer51
viewsHow to access version of a . exe file with Javascript?
I’d like you to help me solve a little problem. I need to access the property called "version" in my file, and I know this is done in Javascript. But I don’t know which tag to use, or what to do to…
-
0
votes1
answer68
viewsHow to split a file line without using Substrings in C#?
I created a file where I store data row by row as morada|nome|telefone|nif, that is, each variable saved in the file is divided by |. I remember there being a method of dividing this line into 4 to…
-
0
votes1
answer232
viewsfread and structure memory allocation
I have the following structure: typedef struct registro {//52 bytes char codigo[4]; char descricao[31]; char unidade[3]; int quantidade; float valor; char status; }registro; It must store the values…
-
0
votes1
answer877
viewsRead text file picking float numbers and playing in matrix
I have a text file for example with: v 1.000000 -1.000000 -1.000000 v 1.000000 -1.000000 1.000000 v -1.000000 -1.000000 1.000000 v -1.000000 -1.000000 -1.000000 v 1.000000 1.000000 -0.999999 v…
-
0
votes1
answer1057
viewsWrite CSV file in a certain line passed by parameter c#
How to write in a CSV file, in a certain line I will receive by parameter, example of the beginning of the code: public void EscreverCSV(string caminho, int linha, string mensagemErro) { using…
-
0
votes1
answer715
viewsTXT file on android
How do I write a TXT file to android using Delphi 10 Seatle? I’ve tried that way and only from mistake; try file1 :=…
-
0
votes1
answer33
viewsKnow when a file row starts with a given string
I have a file like this: # Blender v2.69 (sub 0) OBJ File: 'CUBO.blend' # www.blender.org mtllib cube.mtl o Cube.022_Cube.030 v 0.450000 -1.450000 0.550000 v 0.450000 -1.450000 1.450000 v -0.450000…
-
0
votes2
answers1603
viewsLoad content from another jquery file
I would like to know how to load the code from another html or php file using the function $(".div").load("html.html"); The mistake here would be : It loads the code perfectly, but I have a button…
-
0
votes1
answer737
viewsRecovering images from database using PHP+MYSQL
I need to upload images from a Mysql database using PHP, and then put inside an HTML tag, I’m not getting through using this code: $con = mysqli_connect("localhost","roberto","",""); $query =…
-
0
votes2
answers921
viewsImport/insert other files - go (golang)
I am studying go (golang) and I have a question regarding the import of files, the doubt is about something "elementary" but I could not find anything specifically about it. I have a package (test)…
-
0
votes1
answer3703
viewsHow to get the encoding type of a file?
Follows code: string text = File.ReadAllText($@"{pathname}", Encoding.UTF8); I have several txt files with different condition. Because here shows no special characters, because different encoding.…
-
0
votes1
answer221
viewsError passing script from Firebird database to Postgresql
I’m trying to pass a script for creating and inserting data from a Firebird database to Postgresql, but in some tables there is a syntax error, I am using the SQL Manager Interbase & Firebird…
-
0
votes1
answer206
viewsSave objects to Java file
I have the following code: package p10; import java.io.*; import java.util.*; import myinputs.Ler; public class P10 { public static boolean verificawl (int i) throws ExcecaoWhile {…
-
0
votes1
answer29915
viewswhich characters cannot be used in filenames?
We know that it is common to use systems that save files, I would like to know which characters are invalid to be used as filenames? there is a function that removes all characters other than…
-
0
votes1
answer112
viewsProvide a downloadable file in an API that returns JSON
Hello, I am developing a Java API. It is basically a java Servlet that returns content in json (application/json). With a Tomcat server. One of the response fields is supposed to be a link to the…
-
0
votes1
answer52
viewsOpen file in a unique way c#
Good morning, I need to open a file . txt in a unique way so that if another program tries to read receva a warning preventing opening. The file I will read is a file that contains data in a…
filing-cabinetasked 6 years, 9 months ago Ichihara 121 -
0
votes1
answer48
viewsDoubt with excel files
I have a list of dates in a BTH.cvs excel file. I want to copy the entire file to another new.cvs, but a.exe stops working. #include <stdio.h> #include <stdlib.h> int main(int argc,char…
-
0
votes1
answer246
viewsThread1: EXC_BAD_ACCESS (code=1,address=0x68)
I am having this problem in ide Xcode. On line 8 the warning appears Thread1: EXC_BAD_ACCESS (code=1,address=0x68) The file . txt is in the same folder as the main. void construir1(struct elemento…
-
0
votes1
answer73
viewsProblem reading binary files!
I am making a method for a C code that adds an addition to the value of all the books recorded in a binary file, however ... when I have more than 2 records, all from, ie the record 3,4.5 ... are…
-
0
votes1
answer281
viewsRead end file to start
.... fseek(arq, 0, SEEK_END); while(!feof(arq)){ //fgets(&ch,2,arq); fread(&ch, sizeof(char), 1, arq); //printf("\n%c",ch); num = atoi(&ch); vem=makenode(); vem->numero=num;…
-
0
votes1
answer198
viewsError loading file to chained list
This code carries elements from a file. txt, but apparently it can load the file information, but it gives some error in inserting the list, but I’m not able to identify. Follow the code and file…
-
0
votes0
answers94
viewsHow to Build a File Explorer with PHP?
I made a Ban system that Creates a file in the "bans" folder with the name of the banned users. I’m building another ban system, but it’s too manual :/ Is it possible to display the contents of that…
-
0
votes1
answer303
viewsWriting in binary file
How do I write at any position of a binary file using the fstream library without overwriting the content already inserted in the file? I started trying like this: ofstream salvar;…
-
0
votes1
answer281
viewsHow to Write and Update HTML File with Jquery?
So I’m taking the HTML content from an external site and rendering in my hybrid application. So far so good. I have the following code so far: $.ajax({ url: '{{SuaUrlAqui}}', headers:…
-
0
votes1
answer91
viewsExtract the cover of an MP3, and other information with PHP
I have an MP3 file on my site, and I would like to show the cover of this MP3 on my site, has some way to get this cover with PHP, or other way ? Like this site: https://mixstep.co/i0t9oz20ycb8 The…
-
0
votes1
answer348
viewsReading txt file in C and data interpretation
I need to read txt files in C and interpret the data from inside the files. The files contain parts in TEXT and others in DECIMAL/INTEGER numbers. What I need to do is read the whole file and pass…