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
votes0
answers37
viewslist, delete, or insert, select array in mips
I have some questions about an academic paper in which the teacher asks to list, delete, insert and select matrices. If someone could explain to me how to do thank you, follows down the slides of…
-
1
votes1
answer2276
viewsRead multiple objects in Java serialized file
I have a file Produtos.ser where several objects of the type were recorded Objeto. In the code method below, I wish to retrieve all objects from the file and store in an Arraylist list. However, it…
-
1
votes1
answer328
viewsIs it possible to create and remove . properties files from Android by the application itself?
It is possible to create and remove files .properties of Android, by the application itself? Ex: after creating an annotation it creates a file .properties with the name of that note!…
-
1
votes1
answer200
viewsHow to find unused files in a project?
We have a web project that has changed the layout several times and many files will no longer be used. However, since there are several developers using files at the same time, the old files were…
-
1
votes1
answer307
viewsAdd attributes in file creation
I am developing a Java application that creates files in the user directory. So while creating the files I needed to add some attributes in their properties, so that I can identify from where…
-
1
votes1
answer204
viewsError Uploading File to Database
I’m trying to upload a file to the database. Only instead of him sending the file to you, he’s sending you his temporary location. My code is like this: $arquivo = $_FILES['arquivo']; $name =…
-
1
votes1
answer1328
viewsString with memory junk
I’m having some problems working with files and functions, the code I’m making should print a string in the file, but this string is littered, and does not print out what should be used despite…
-
1
votes1
answer45
viewsHow to compress my Resources files
I’m developing a Battleship game (I’m still a beginner in programming) and I’m adding some songs and images. My problem is that this is adding too much to the project/game size and hinders. Is there…
-
1
votes1
answer2717
viewsCheck File Creation Date and Delete
I created a Backup application, it saves the files in zip format DD-MM-YYY - 00-00-00.zip, but would like to know how I would do to check creation date for deletion, because the name of the files…
-
1
votes1
answer250
viewsPermission denied accessing file
I have a function in my program where it shows all students registered in a binary file, the user selects which one he wants to delete, a confirmation screen appears with the user’s data waiting for…
-
1
votes1
answer2424
viewsRead file in binary
Hi, I am saving a file in binary format and trying to open the same binary. However, I am not getting the expected result. They follow the writing and reading function. I’m saving a format image.…
-
1
votes1
answer968
viewsHow to capture file size from System.Drawing.Image?
I have a method to which I pass the parameter System.Drawing.Image and the percentage that this image will get after the resize. public static Image ResizeImagem(Image imgFoto, int percentual) {…
-
1
votes1
answer541
viewsCheck if file is newer and then download
I created a windows service, which daily downloads some files. These files have about 2Gb (that’s right, two gigabytes!). The problem is that these files are every day available on the site, but are…
c# filing-cabinet http-request webrequestasked 9 years, 12 months ago Guilherme de Jesus Santos 6,566 -
1
votes1
answer3350
viewsHow to save a file to a field in SQL Server?
I would like to know how to save a file within a SQL Server field com C#. Reading on some forums I realized that there is difference between image and binary files. The type of file I want to save…
-
1
votes1
answer201
viewsHow do I limit sending data from a form?
I want to prevent a user sending data more than 5 times a day; I have no way to use database would have to be written to a file txt.
-
1
votes1
answer229
viewsCan I point to project files this way?
Working with PHP is very easy to set up a schematic path for some file, but in Java the scheme may be different? I can point to a file starting, for example, by src File.separator? Example: private…
-
1
votes1
answer1537
viewsHow to open a file that is within the solution with Process.Start
I added my solution in C# a folder called "files" inside this folder will be placed some standard documents that can be analyzed when registering some projects. I have a combobox in the form for the…
-
1
votes1
answer400
viewsProblem uploading files
I have a code pad to do upload but every time I try to do the upload appears a message saying "Please send files with the following extensions: jpg, png or gif". I am trying to do the upload file…
-
1
votes0
answers59
viewsOpen local machine files via Javascript
I need to simply run a local file via Javascript. For example, in the C# I have the System.Diagnostics.Process.Start("C:\\teste.txt") which will open in the notebook the teste.txt. How do I open…
-
1
votes1
answer399
viewsHow to open a packaged executable in the project?
I am running a program as follows: Runtime.getRuntime().exec("C:\\meuprograma.exe"); In which it works normally. But I would like to package the files (the executable and a few more) within my…
-
1
votes1
answer1714
viewsWrite to file, replace words/numbers
I have this code that is supposed to read a file and delete all the numbers that are there, the file is like a list of words, Ex: "Ana n Bruno n 123 n 10 n ...". A line has letters or numbers, never…
-
1
votes1
answer5597
viewsHow to remove a line from a text file
Hello. I am creating a program that opens, stores or deletes links. However, although I can remove the selected item from the link list I cannot delete the file line that corresponds to the selected…
-
1
votes1
answer5806
viewsDeleting specific line from a text file
I need to delete the last line of a text file. It files user coordinates for each line, but when the user requests a Ctrl + z, I need to delete the last line. How can I do that?…
-
1
votes1
answer5247
viewsRemove text file
I’m having trouble removing a C text file. Soon after using the fclose() function, I use remove() indicating the name of the text file, but the file is not deleted (the remove() function is not…
-
1
votes2
answers1021
viewsDisplay all directories and files contained in them
I’m trying to mount a file tree where in addition to displaying the computer directories is displayed also your files. The code I made below is listing only the specified directory, in case the C:\.…
-
1
votes1
answer82
viewsError reading binary file
I am trying to read a binary (digital biometric) file that the user selects. But it is not returning anything. What is wrong? Follows code below: var fileInput =…
-
1
votes1
answer97
viewsHow to program to open a specific file type?
I would like to learn how to mess with files, good for example programming in java and work with file CBR, those files HQ or Comic book For this there are libraries specific to each file or class…
-
1
votes2
answers346
viewssave a data type in a file in c
I have this data structure: typedef struct { ListaCartao tabelaCartao[HASHSIZE]; ListaArtigos tabelaArtigos[HASHSIZE]; char localidade[MAXLOCALIZACAO]; }tCelulaSuperdume, *SuperDume; SuperDume…
-
1
votes1
answer2956
viewsHow to check if a file already exists and overwrite it in Java?
Hello. I am developing a system where in a certain situation, I must save a file with a picture extension created by me. If the file already exists, I check with the user if he wants to overwrite…
-
1
votes0
answers435
viewsEdit doc file through C#
I have a program that generates barcodes, inserts them in a file . txt and prints this file. What I want is for those barcodes to be inserted into a file doc with a paper label template (in this…
-
1
votes3
answers512
viewsPython binary file saving error
I have a program in Python that receives a binary file via parameter and saves this file. However, when it saves the file, some characters it replaces with a series of numbers. Below the original…
-
1
votes2
answers811
viewsRecord and recover information in files
How do I write data to a file and then recover it? I have a enrollment system. I start a folder in Windows and within it I generate the enrollments sequentially. I finish and go home and the next…
-
1
votes2
answers136
viewsAndroid file monitor
I need to develop an application for android where the same work monitoring a certain directory with a certain periodicity and sending new files from this directory to an FTP or any other folder of…
-
1
votes2
answers76
viewsSave data to a text file to read later
I wonder how I saved some data as example, in case numbers, in a text file so that when I close the application the data will still be saved and when I open them I can resume them.
-
1
votes1
answer3532
viewsDirectory Download Android
Hello, in my app I download a CSV file, but it never appears in Smartphone Downloads, I can only view it with the File Manager. And also when I try to pass the file to the computer, I can’t find the…
-
1
votes1
answer451
viewsFile reading.ini
It is possible to read variables in arquivos.ini with C++? Ex: host = "localhost" name = "username" pass = "password" port = 1010 When reading from this file I set through the ifstream. ifstream…
-
1
votes2
answers987
viewsHow do I count the number of files in a folder with PHP?
In PHP, what is the fastest and most efficient way to read the amount of files present in a given directory. For example, I want the demo below to return 3. pasta/ index.php dev.php .htaccess…
-
1
votes1
answer90
viewsRead/Write information to file . cds
I took a project to develop in C#, the project is based on reading information from a file .txt and save the information to a file .cds which is used in a system developed in Delphi. I looked for an…
-
1
votes1
answer629
viewsOpen a file using secondary function
I need to create a function that "points" a file pointer to a particular file in computer memory. I was able to do this: #include <stdio.h> void abre(FILE*); void procedimento(); int main () {…
-
1
votes1
answer1190
viewsTake the name of an image by Php or JS
Well, I have a form that has a input of type ='file'. I’ve seen on several sites and examples of how to do and all that I test do not work. the code can not share more is more or less like this. I…
-
1
votes3
answers1340
viewsRemoving spaces from a text file
How do I remove spaces from a text file? I have the following text file: LC1 00019 1 31012012 00001 00243206 I uploaded and put the following code: $abrirArquivo = fopen($uploadArquivo, "r");…
-
1
votes1
answer85
viewsUnlink: Permission Denied - Trying to get Property of non-object
Good afternoon, everyone, Recently I’ve been trying to manage images where I need to use unlink. Follow the full function code: $query_listaPic = "SELECT * FROM tbl_imagem WHERE tbl_produto_id =…
-
1
votes1
answer917
viewsConvert Bufferedimage to File?
I need to convert a BufferedImage for a File. I tried it this way, but it didn’t work: File file = null; ImageIO.write(image, "jpg", file); image is the type BufferedImage. That was the mistake:…
-
1
votes1
answer330
viewsConcatenate string with integer array and write to file?
I have a dynamic vector of integers. For example: 1 2 4 6 8 9 10 I want to attach it to a string, like this, for example: [B]: And record this in a row of the file, then read the file with the…
-
1
votes1
answer108
viewsRead from file and use read parts to call functions
I have a file that contains calls to functions present in my code. Some examples of functions are criar(), inserir(elemento, conjunto), listar(conjunto) where the arguments are integers passed to…
-
1
votes1
answer531
viewsSerialize/Deserializar Datetime
I am saving in text file a serialized object that contains only fields of type Datetime, however, the date is saving in the wrong way. I will demonstrate with an example what I am doing. My…
-
1
votes1
answer385
viewsRead file when it exists in directory
I am building an application that reads a file in a certain directory, however this file will be generated in this directory at different times from another application, after the application…
-
1
votes2
answers279
viewsError including library using Linux
I’m just trying to compile examples from the book and I get fatal error: No such file or directory trying to include conio. h, io. h and even curses. h. I read in the Soen and it was suggested just…
-
1
votes1
answer405
viewsFile generated in Android does not appear in windows Explorer
I can save the file in my micro sd but connect the mobile device on computer through a USB file does not appear in Windows Explorer. <uses-permission…
-
1
votes1
answer226
viewsSegmentation fault function fgets
I’m having a problem segmentation fault in file opening txt. I know for manipulating strings, higher level liguagens, but I have no way to learn now, so I’m using C. My problem is to read a list…