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
-
2
votes2
answers513
viewsHow to open file by separating each line into an item from a list/tuple?
In PHP, we have a function called file which, when opening a file, causes each line to be placed in an item of a array. Example: hello.txt olá mundo php script file('hello.txt'); // array('olá',…
-
2
votes1
answer7728
viewsHow to write in a file without erasing old things?
Example: in my file has joao maria carla if I use: arq = open('nomes.txt') arq.write('jose') arq.write('\n') arq.close it will erase the previous ones that was Joao, maria,how do I write without…
-
2
votes3
answers106
viewsMore attributes in Appsettings
You can add other values to AppSettings without breaking with the application? Standard values: <appSettings> <add key="Nome" value="ValorTeste" /> </appSettings> I’d like to leave…
-
2
votes2
answers8291
viewscreate a file with C# content and save to a folder on the computer
I need to create a report and save this report in a folder inside the C disk: from the computer, I’m only able to save the file without the contents and with the name blank. The code to save: string…
-
2
votes1
answer68
viewsDoes the amount of bytes during a file read vary according to the mode chosen?
In C, if I open a file in binary mode, read it byte-by-byte and then take the file and read it in text mode, will the amount of bytes be different? If so, why?
-
2
votes2
answers464
viewsWhat is the specific area and professional that defines the layout of data in files in a software project?
Who and how do you define the layout of data in software such as Editors, Dbms or even who creates text encodings? When I say "data layout", I mean, for example, how a PDF file stores the document…
database filing-cabinet software-engineering language-independentasked 7 years, 5 months ago Carlos 1,622 -
2
votes2
answers164
viewsDoubt about PHP command to write inside another. php file
I’m finding a problem in the following code: <?php $id = $_POST['id']; $titulo = $_POST['titulo']; $imagem = $_POST['imagem']; $coment = $_POST['coment']; $finalcoment = '<div…
-
2
votes1
answer444
viewsRead the txt and return it all in a Java String
I have this code to read one txtand would like to return later a string with the txtall copied , but this algorithm it just read the lines and goes showing how to return all the content it read in a…
-
2
votes2
answers2545
viewsMove file list between folders
I have a method that copies files from one folder to another, then deletes the file. It suits me perfectly, but I wonder if there’s any way to do it without having to resort to InputStream and…
-
2
votes1
answer169
viewsDoubt with Jcombobox to insert data at runtime
I’m new to Swing and this is the first Java application I’m actually doing, but I’m having doubts about Jcombobox, because I would like to make a field (Jtextfield) where I put the directory and…
-
2
votes2
answers822
viewsHow to delete the last line of a text file in C language
Guys, I’m having a question about how I should delete the last line of a file using the C language. Could someone please help me. Below, follow my code. int quantidadeDeUsuarios = 0; Usuario…
-
2
votes2
answers303
viewsGiving "Segmentation fault" when I try to open C files
The following code gives me "Segmentation fault (core dumped)" when trying to open the file after declaration and filling a string with sprintf. //Sem as duas seguintes linhas, o código roda…
-
2
votes1
answer96
viewshow to receive input from the user and write to a file
I am trying to receive several lines of input from the user (at most they will have 37 chars each) and write them in a file, but the result is the creation of the file with nothing there. My current…
-
2
votes2
answers2802
viewsExcel/VBA file more than duplicates in size for no apparent reason while being saved
I’m working with the Excel and using some programming resources of the VBA via modules (without using forms), and there has been a problem, the file currently has 8MB and I saved continuously with…
-
2
votes1
answer59
viewsWhy am I only able to manipulate files with pointers?
In the statement I always have to put FILE *Arq; If I put it without the * it presents an error. Why?
-
2
votes1
answer204
viewsWhat function allows you to open . txt file and run other functions in the contents of this . txt?
Which C language function allows you to open file .txt and run other functions in the contents of this .txt?
-
2
votes1
answer4013
viewsBinary file storage
In the program, I need to implement a structure that represents a student (name, age and enrollment). Using this structure, I have to write a program that reads the data of 5 students and stores it…
-
2
votes1
answer4177
viewsHow to create a list and put other lists inside?
def annexsentence(): nome_tarefa=input("Nome da Tarefa :") data_atual = datetime.datetime.now().strftime("%d-%m-%y") data_final=input("Data Final :") estado="Aberta"…
-
2
votes1
answer1628
viewsHow to copy SOME files from one branch to the other?
I have 2 branch, "B1" and "B2". I need to copy files from "B2" which is more evolved and move to "B1", but some files I don’t want. How do I?
-
2
votes1
answer487
viewsProblems with additional files in Pyinstaller
I’m building a EXE with the way Onefile of Pyinstaller (by auto-py-to-exe). I need two files to be added, one .py from where the main will pull the functions and a jpeg image so that the computer…
-
2
votes1
answer141
viewsProtect Excel spreadsheet in C#
In a C#application, you can have from 1 to 2100 hours of data collection. Data is saved in a CSV Excel spreadsheet every minute. With the code below we can hide and show the file. #region string…
-
2
votes2
answers3195
viewsError importing data . csv to Rstudio
When I will import and create a file my data to the R it error... I tried the following way: melipona <- paste(system.file(package="dismo"), "/ex/Melipona.csv", sep=";")…
-
2
votes1
answer611
viewsRead large (80gb) php file
I need to read an 80 giga file using PHP to include in a postgres database. The file is a txt with a column layout. THE IDEA WOULD BE NOT TO DIVIDE IT, BECAUSE THE PROCESS WOULD BE UNVIABLE, SO I…
-
2
votes2
answers108
viewsWhy don’t files show your bits?
For example, I open a file .exe with the notepad and see instead of 100101 I see a lot of strange characters why this? What characters are those? A file .txt is also binary? How can I see the bits…
-
2
votes1
answer999
viewsHow to search for an element in a structure vector?
Good night! I am doing a work in C where I have to look for doctors by specialty, that is, I ask the user the name of the specialty to look for and I make a printf of the doctors of that specialty.…
-
2
votes2
answers103
viewsProblems in Reading File
Last week I had a question on how to read a string "giant". Thanks to the help of the staff here I managed to implement the function. Now I have reached a new problem. Reading the file is not…
-
2
votes1
answer55
viewsRead file with list comprehension only works the first time
fhand = open('text.txt', mode = 'r') txtfile = [item.split()[0] for item in fhand] txtfile2 = [item.split()[1] for item in fhand] print(txtfile) print(txtfile2) Why the second comprehensilist on is…
-
2
votes1
answer121
viewsWhat is the difference between codec, file format and extension?
I’ve heard that mp3, mp4 and etc... uses the same codec, but what are each and what the difference?
-
2
votes2
answers495
viewsProblems with fwrite in binary file
I am trying to write and read an integer in binary file with the following code: #include<stdio.h> #include<stdlib.h> #include<string.h> typedef struct{ int free_slot; }header;…
-
2
votes1
answer37
viewsFailed to read formatted file via incoming redirect
I am trying to read the following file via input redirect, but the program is going into infinite loop and with totally wrong readings. When I manually enter the data the program executes as…
-
2
votes1
answer328
viewsProblems Reading C File - Comma Delimiter
aid of kindness. I have the following file line structure: 99933311133,UM NOME QUALQUER,8485885855,UM ENDERECO QUALQUER,84 9992212,S,S The default is:…
-
2
votes2
answers155
viewsAlgorithm with flow chart/diagram
Guys, I’m taking a course in logic and the following question has fallen: Draw up a block diagram to verify which products need to be purchased and the quantity to be purchased: Having the following…
-
2
votes1
answer261
viewsText file is not displayed completely in Jtextarea
I put it up to show you the packages, so you can tell me if I’m making proper use of the MVC If I save in txt: [Maria;32] ; [Joao;44] e [Luna,12]` he just shows me Nome: Maria Idade 32 and Nome…
-
2
votes1
answer70
viewsHow to verify if a file containing a specific word exists?
I am using PHP, and in a server folder contain files with these names: T3497012@16-01-02:21@[email protected] T3497012@16-01-02:22@[email protected]…
-
2
votes1
answer343
viewsFile reading in the IDE works and at the time it generates the . jar does not work
I have an application that reads a text file that is in the same folder where the application is. When I run the program in netbeans it reads the normal file: But when I Gero the JAR it does not…
-
2
votes1
answer665
viewsConvert File string to Float
The program below should take the data written in a file . txt, show on screen and do the general average calculation. the data in . txt are being saved in the following format: Student: Bruno First…
-
2
votes1
answer1586
viewsHow to remove a struct stored in c file?
I don’t think I explained it well in the title I have a schedule code where I can add contact, edit, list and is stored in a calendar file.txt only that I’m having trouble removing a contact that…
-
2
votes2
answers68
viewsReplacing text with words from another file
it should be easy, but I’m not finding a solution! Here’s the thing: Arquivo1 - with texts: Doc Texto doc1 Isto é um teste para substituições de palavras. doc2 As casas são parecidas. Arquivo2 -…
-
2
votes2
answers1277
viewsHow to manipulate a CSV file column?
Hey, guys! What’s up? I am learning Java and need help with CSV files. I can read the file, but I need to perform operations with a few columns. Example, with fictitious data, of the table I am…
-
2
votes1
answer59
viewsBinary file being misspelled
Creating the binary file: #include <stdio.h> int main(int argc, char const *argv[]) { FILE *BIN; BIN = fopen ("BIN.bin","wb"); if (BIN!=NULL) { for (int i = 1; i <= 100; i++) { fwrite(…
-
2
votes1
answer49
viewsError to delete the first binary code entry
I found this code on the Internet only it has an error: when I register one user and try to delete it shows that it has been removed, but when I open again the program it is still there. This error…
-
2
votes1
answer199
viewsConvert a file path to String
I’m in need of help, I need to read a JSON file (I’m using the GSON library), and for that I need to transform a Path variable to a String. Below is the code for better understanding. public void…
-
2
votes3
answers781
viewsProblem reading UTF-8 files in PHP and right in the browser
I need to save a file .txt in UTF-8 in PHP. Saving the file is very simple, however, when opening the file directly in the browser (example www.site.com/file.txt) the browser cannot recognize the…
-
2
votes1
answer353
viewsSumming numeric values in text files with Python
I am writing a small Python project that consists of an application that adds expenses, storing the name and value of expenses in a text file and printing on the command line, and at the end…
-
2
votes1
answer1703
viewsCustom source React Native
I’m having a hard time adding a font to my React Native project. I have tried with many tutorials but none fits well in my case, and several do not work. This is where I define my already stylized…
-
2
votes1
answer303
viewsHow to open a txt file that has a space in its python name?
I’m learning to code in python and I’m having trouble opening a specific file. In case I can open text documents normally, but when there is space in the file name it does not locate the file.…
-
2
votes1
answer130
viewsList containing only the last element in Python
I’m going through a text file and putting its contents in a list of objects, in which each object contains two "string-like" attributes: word and meaning... The problem is that after I go through…
-
2
votes1
answer95
viewsConsulting previous index in Python
That question is a continuation of this here As previously reported, I have a script that does a txt search for a keyword (APPLE) and if it is true, it alters another part ("00" or "01" or "02") of…
-
2
votes1
answer50
viewsFileinputstream class read() method not finding end of file
This program aims to copy the contents of the text file origin.txt and paste it into the file destiny.txt, each space read in the source file, a hyphen must be pasted in the target file. The noose…
-
2
votes2
answers63
viewsHow to use split() inside a Java loop?
Good evening, I have been learning Java for a while and wanted to know how I could read a text file that has one or two numbers in a maximum of 10 lines. Something like the files below:…