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
-
3
votes1
answer2152
viewsPython - Open multiple files in one For
Could someone please help me explain why I can’t add the texts of each file to each position on my list? ''' Funções para o processamento dos textos (cartas) para base de aprendizagem'''…
-
3
votes1
answer885
viewsHow to display the contents of a . txt file on the screen?
I’m using JFrame to try to display the contents of txt files in a window and then delete the entire file. However, when I put it to display, it erases the file no longer displays on the screen I…
-
3
votes2
answers2830
viewsHow to check if a file has been selected in the input field?
I do a form validation to ensure that the file a user uploaded is of the right type. But the upload is optional, so I want to skip the validation if it hasn’t uploaded anything and uploaded the rest…
-
3
votes1
answer328
viewsStopword does not work
Hello, I made the program that serves to do basic text preprocessing to use in Mining text tools. It must be something very trivial, but I can’t see where it could be wrong.…
-
2
votes3
answers1538
viewsDownload event problem in "href"
I have a problem where I need to find a file on the server Linux with the name of the value of <a href> and download it when you click on the link. the file path is /var/www/html/ligacoes…
-
2
votes2
answers352
viewsShowing one icon to directory and another to other files
I need to read a directory and change its icons. If it is a directory, apply an icon if it is a file. txt apply another icon. Follow the code I made: <?php $dir = 'ftp/'; $pasta = opendir($dir);…
-
2
votes3
answers665
viewsRegister with C File
How to know if there is a Record (struct) saved at any position in a C file ? To the struct: typedef struct Registro { int chave; char caracteres[20]; int idade; int prox; bool contem; } Registro;…
-
2
votes4
answers1315
viewsHow to group code and add existing amounts in text files with C#?
I have several text files inside a directory. I need to do in C# and join all the text files in a final text file, but treating their contents. Example: Arq1.txt 123456010 654321020 Arq2.txt…
-
2
votes1
answer836
viewsError writing text file: cannot Convert Std::string to const char*
I’m not getting a record string on file .txt in C++ (Codeblocks). // aux é um inteiro // aux2 é uma string // foi dado fopen no arquivo...abaixo só segue a parte com erro aux = x.retorne_energia();…
-
2
votes1
answer443
viewsPermissions and antivirus issues to run the application
I created an application in Java and generated an executable . JAR, which works perfectly, after this I used the Launch4j which transforms my . JAR into . EXE and then I used Installcreator to…
-
2
votes2
answers517
viewsProblem loading file to memory
I am trying to load several files into memory (small file), but the problem is that when I try to load another file soon after, all the files get the same name as the last uploaded file. I am using…
-
2
votes1
answer2690
viewsHow do I save the IP of the person who visited my site to a text file?
I’m using the code below, but only writes "::1" to the file. <?php $arquivo = "ips.txt"; $file = fopen($arquivo,"a"); $string = $_SERVER['REMOTE_ADDR'] . "\n"; $fp = fwrite($file,$string);…
-
2
votes2
answers281
viewsSave visitor IP in text file, but how not to save again if already there and how to read?
I used the answer to this question to save the IP in a text file: How to save the IP of those who visited my site in a text file? The thing is, I want to create a button like "enjoy" so that…
-
2
votes1
answer1902
viewsIs it possible to get a specific line of txt/csv file using an address?
It is possible to access a line from a file txt/csv (example below) by your address directly without having to go through each line using C#?…
-
2
votes1
answer191
viewsPassing data from one txt to another txt
I have a file .txt with three names separated by comma, in this case: test.txt João,Maria,José In my class I take the file and pass to a array, separating by comma: String nomeArquivo="teste.txt";…
-
2
votes2
answers160
viewsWhat is the difference between open and opendir calls on UNIX?
If the open file uses the open system call, why is there another system call to open files directory (opendir), if a directory is a file type? It wasn’t supposed to be a call just for all kinds of…
-
2
votes2
answers4172
viewsRead comma-separated file data in C
I need to read the data of an entry in the format: 100,Refrigerator,180,90,89,1200.00,4,white After some researches, I found the Strtok function that separates the data between commas, and the code…
-
2
votes2
answers3451
viewsRead a comma separated string
My reading has been established to the comma, but he’s reading the whole field to the end of the line when reading the string. The code is read correctly, but only in the code. #include…
-
2
votes2
answers7557
viewsHow to Save Read Chained List in File?
I’m a beginner in programming and I’m coding this program for a college job. It is a "pizzeria manager", I need to save read a linked list (customer registration) in a file, so that the data is not…
-
2
votes2
answers230
viewsHow to verify if a file name has 16 digits?
namespace _06_Teste { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void cmdValidar_Click(object sender, EventArgs e) { foreach (String file in…
-
2
votes1
answer794
viewsHow to save byte array in PHP file?
I have a array of bytes which is an image that is saved in BD, which method to use to save on hard drive?
-
2
votes1
answer641
viewsA little more about File.Writeallbytes
How to display progress by synchronizing the following function: File.WriteAllBytes(string path, byte[] content); This method should be called according to a System.Threading.Thread Ex: Thread wnd;…
-
2
votes0
answers426
viewsException when deleting directory using Fileutils.deleteDirectory
The directory has 6 files inside it. The exception is java.io.Ioexception: Unable to delete file: tmp umDosArchives. Manually, I can delete all the files and the directory. I used the canWrite…
-
2
votes1
answer1315
viewsError while exporting to Excel (Corrupted file)
I am making an application to export the result of a query sql for Excel. After the file created the time I will open it gives a corrupt file error. SaveFileDialog sfd = new SaveFileDialog();…
-
2
votes1
answer480
viewsFile-Transfer Cordova how to use php
Hello I have the following code onDeviceReady: function () { navigator.camera.getPicture( app.uploadPhoto, function (message) { alert('get picture failed'); }, { quality: 50, destinationType:…
-
2
votes1
answer91
viewsmove_uploaded_file can’t catch a file
Hello, the move_uploaded_file can’t get a file. echo " <form method=\"post\" enctype=\"multipart/form-data\" action=\"testar_formato.php\" id=\"upload-container\" class=\"fileUpload\">…
-
2
votes1
answer101
viewsC# Opening Files
I wonder how to open a file in your native program with C#. Example: I have a file .xls (spreadsheet). When I want to open it, my system makes a request and opens it in excel. Thanks in advance…
-
2
votes1
answer911
viewsProblem when deleting image
I have an image that is my user’s avatar, then I need to delete and I have the following code snippets: Action that is used in file import public void MinhaActionParaImport() { var arquivo =…
-
2
votes1
answer183
viewsFetch phrase within files . Cs from a specific folder using C#
I would like to know how I can find a phrase inside files . Cs of a specific folder. You don’t need to develop code, I just want to know what/what functions to use and how to use them. I couldn’t…
-
2
votes1
answer627
viewsUse finfo or pathinfo to get the mime type?
finfo_* and pathinfo are used to detect the mimetype file and not the extension. The point is that in the world there are several file formats and from time to time new formats appear, I have no way…
-
2
votes1
answer408
viewsQuery vector from one table to update another in C
Hello. I’m new here and I’m not even sure I was objective in the title. But come on. I’m almost done with my final C Algorithms project, and I’m unable to update one item from one table with…
-
2
votes1
answer111
viewsAlternative to PHP database?
I want to know if there’s a way to save form data, display it and edit it without using a database? Because whenever a software will do integration with database I stop because I do not understand…
-
2
votes1
answer437
viewsSave Arraylist to the external memory of an Android phone
have how to save an Arraylist by Fileoutputstream in the memory of an android phone? Or have some better method? For example: FileOutputStream fos = openFileOutput("Foto_Imovel",…
-
2
votes2
answers1618
viewsPassing parameter using the " String[] args" declared in main
I’ve been searching the Oracle documentation, examples of copies of files, with their attributes in various ways... Within this research I came across a strange thing that was the parameter passage…
-
2
votes3
answers2520
viewsSearch for file with only part of its name in C#
I need to find a file automatically without opening a check box for the user to select the file. Where I already have the directory of the folder where this file will stay and I also know the part…
-
2
votes1
answer571
viewsPut and take whole file?
I have two whole variables a rp and rc, and I have to record them in a file as a way to save their value, and then take them and put them into variables like inteiro to use in my program. To write…
-
2
votes1
answer439
viewsOpen files from certain extension on my program
I’m making an application in Visual Studio, with the intention of it work with own extension files (.rmt, subject to change) and can open it later. I want that when the user double-click on the…
-
2
votes1
answer19917
viewsHow to read text files and put words into an array?
I need to make a code that reads a text file (txt) and save only the words at the positions of a vetor, below follows my code: int main(int argc, char** argv) { FILE *file; file =…
-
2
votes1
answer3931
viewsVector file content in C
I need to read a text file and store each word of the file in a vector position. The reading was done normally and the file was passed by parameter such as the amount of words. The code performs the…
-
2
votes2
answers1387
viewsList Folders and Subfolders of an FTP with C#
Would anyone know if it is possible, if yes, how to list all folders and subfolders of a FTP? Okay, here’s the idea. I’m listing all the Files and Directories in this FTP, but different from…
-
2
votes1
answer794
viewsHow to generate Adjacent Matrix of a BFS from a txt file? C++
I’m using the Codeblocks. I have a. txt file that represents a maze, everything that is after the : are rooms: The first line of the file shows the start coordinate, which in this case is AS. Every…
-
2
votes2
answers1420
viewsRead numbers separated by commas
I need the sixth figure printed on a arquivo.txt. I tried to read the file and print the first six on the screen to see if it was working, then generate a file with only the value I need organized,…
-
2
votes1
answer20445
viewsHow to open a. fdb file?
I need to open a database file (.fdb), but I don’t know how. What should I do to open this file? In it there is a list I want to pass to Excel.
-
2
votes1
answer1038
viewsHow to remove duplicate lines from txt using php?
Well I’m creating a div which is updated every x seconds and I am displaying the users currently logged in, but my code is inserting every update the same record. Is there any way to delete repeated…
-
2
votes1
answer977
viewsError writing file stream
The flow was not writable You receive this exception when trying to change a file that is on Resource. Follows the code: var assembly = Assembly.GetExecutingAssembly(); Stream str =…
-
2
votes2
answers1154
viewsAdd Information to a file on a specific line
I’m using the file_put_contents to create a file, but in a certain part of my process I need to add things to that file but only from line 2, I searched in the PHP documentation of file_put_contents…
-
2
votes2
answers804
viewsGenerate text file from a console application
I need to adapt this method of an application Windows Forms https://github.com/BoletoNet/boletonet for Console Application, that is, instead of using the object saveFileDialog.ShowDialog() I have to…
-
2
votes1
answer7011
viewsHow to remove or clear value from input file?
Hi guys from stackoverflow. It is possible to remove or clear value from input file ? I also saw another example of resetting or removing all input file using:…
-
2
votes1
answer804
viewsDelete files created before 10 days ago from current date
I am trying to automate the deletion of some backup files that a small application I made in swing creates, which over time, accumulates, occupying too much space in the network directory, which…
-
2
votes1
answer188
viewsnome.exe has stopped working. I can’t fix this
My C code gives a crash displaying following po error: filename.exe has stopped working I don’t know how to fix it. Follow the code I’ve already made: #include <stdio.h> #include…