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
votes1
answer445
viewsHelp python by taking only the last data from the list
I have a website and I need a name separation system:last name with list, the data is in a txt and I normally import the data is for example: maria:Carla Joao:lima wanted to be able to separate as…
-
0
votes0
answers96
viewsSearch using Thread
I am looking for files using threads, the code I developed looks for the right file , but it turns out that it does not finish the execution when it finds , or if it does not find it continues…
-
0
votes0
answers1349
viewsHow to read a . csv file in C?
I created this code in C where I inserted the coordinates of some points and with SVG I drew those points in the space connected by lines. all saved in a. html file to be executed in the browser.…
-
0
votes1
answer36
viewsVariable returning 0 in file
Hello, I’m learning files I’m having difficulty using fwrite and fread, so the num1 variable is returning me 0 in the repeat structure and I think I did everything right =( #include<stdio.h>…
-
0
votes2
answers514
viewsDelete image from BD and Folder
I’m trying to create a script that excludes the image of the database and folder, but the problem is that it is only excluding from the BD and not from the folder. Tabela equipes id, nome, foto Here…
-
0
votes1
answer361
viewsJava - read XML from a URL
I have a function that reads XML and it works 100%, the problem is that when I try to read an XML that is online on my server I cannot. Follows code: public int lerXml() throws JDOMException,…
-
0
votes1
answer125
viewsRead text file and store fields in variables
I need help on the following: I will do a b-tree to present a work at the college, which consists of reading the data from a text file and passing them to the B Tree. I will do as follows: I created…
-
0
votes2
answers900
viewsHow can I export output to a C text file?
I want to pass the program output to a . txt file, as I would?
-
0
votes1
answer975
viewsError while saving file - Already being used by another process
I want to read the text of Textbox (Winforms) and save to the file. Giving error, saying that the file is being used in another location. StreamWriter escreverentrada = new…
-
0
votes2
answers1270
viewsIs the dot and comma character (;) allowed in filenames?
The character ";" is allowed in filenames? In windows you can use the character ";" in naming files without any problem, but I do not know if the same rule is for Mac or Linux. I researched file…
-
0
votes0
answers22
viewsCorrupted file when saving to bd - PHP
need help. I have a system that needs to upload a file to the comic book. The system stores the image bin in the database instead of creating a file reference on the server. This bin is corrupted,…
-
0
votes2
answers99
viewsArray returns wrong value in java
I have a question about a college job. I can read with numbers, remove ";" and pass the values to the array while reading the file. However, when I try to access a position of the array outside of…
-
0
votes1
answer1079
viewsCompare integer and pointer
Well, I have a question, I’m trying to copy a line to a file but there’s an error that says I can’t compare an integer to a Pointer, can anyone help me? The error is on the line ch = getc(file1);…
-
0
votes1
answer915
viewsSave Json dictionary to txt
How can I save a. json dictionary of a requests in txt. I tried to do it this way but it didn’t work. import requests import json url = requests.…
-
0
votes1
answer421
viewsWrite a file with the contents of an array
I have an array of char grid and I want to write a file with its contents. Here’s the code I made: public static String getGrid() { String text = String.valueOf(grid); return text; } public static…
-
0
votes0
answers100
viewsLaravel - plugin to view existing folders and files in Storage->app->public
need a help, someone knows some plugin to show real-time the existing folders and files in Storage>>app>>>public in Laravel? I found this plugin that does what I want: Demo:…
-
0
votes1
answer62
viewsMalloc in a string, based on the size of a FILE
int main(void) { FILE *p = fopen("matriz.txt","r+"); char *arquivo; arquivo=(char*)malloc(sizeof(p+1)*sizeof(char)); while (fgets(arquivo,sizeof(arquivo),p)) { printf(" %s",arquivo ); } }//END the…
-
0
votes1
answer2051
viewsHow to make the Multiple file input field in a second selection keep the previously selected files?
When Open the file selection window it lets me select multiple files, OK!. But after opening the files if user click again to open more files it clears the previous selection... How to make him…
html filing-cabinet input multiple-file-upload multipleasked 5 years, 9 months ago Richard Barcelos 21 -
0
votes1
answer1396
viewsJava spring: convert a file to Multipartfile
I created a simple file: File file = new File("text.txt"); But I would like to convert this to a Multipartfile, which would be the best way? I have tried the code below without success:…
-
0
votes0
answers67
viewsJava - XML File - Empty Final File
I have a Java webservice that is triggered to perform integrations via exchange of XML files with an ERP, it worked perfectly from the day I developed it. Yesterday morning, it went on to generate…
-
0
votes1
answer523
viewsHow do I write data from an Arraylist to a txt file (in addition to reading the file when starting the program)?
Full Project Github Repository /*a human resources company specialising in market relocations (job vacancies), calls for the creation of a system to computerize its actions. Thus, she wants to…
-
0
votes3
answers703
viewsHow to leave the program open in python
I made a program that reads a file but it reads and already closes, how to add a 'Press S to exit' for example and leave the print on the screen for longer? -below is the code…
-
0
votes1
answer681
viewsDelete record in text file
I am making a program that consists of recording movies/series, modifying information and deleting specified records. I’m having great difficulty in designing the functions of rule out and modify…
-
0
votes1
answer68
viewsFormatting of Python File
Hello, I’m a beginner in Python and I’m working with natural language processing. When processing a text and separating the sentences, I want to write this way in the << SENTENCE >>…
-
0
votes2
answers569
viewsDictionary file
I am trying to turn a file into dictionary but is giving the following error: Traceback (Most recent call last): File "C: Users taynan Appdata Local Programs Python Python36-32 Project CRUD…
-
0
votes2
answers156
viewsHow to create a file within the users directory?
For each different pc, the Users/User folder tbm is different, I want to know how to create a file inside that directory. I was trying and I got to the following code: FILE *bug; bug =…
-
0
votes0
answers16
viewshow to send a file with the same name without replacing in php
<?php $dir = "arquivo"; $file = $_FILES["csv1"]; if (file_exists('arquivo/dados.csv')) { echo "Um arquivo já foi enviado! Envie outro arquivo!"; exit; } else { …
-
0
votes1
answer41
viewsUpload php problem
Can anyone tell me why the file is not being received in the destination folder? private $id; private $entrada; private $saida; private $status; public function __construct($bd) { $this->bd =…
-
0
votes1
answer629
viewsHow to pass information from a file to a dynamic vector of C structures?
Good afternoon! (EDITED) I’m doing a language work C, where I have to show on the console the information stored in a text file, but it is mandatory to pass all information to vetores structural…
-
0
votes1
answer369
viewsdo not import blank lines - php
I have this code, but there must be some error. When I try to open the file the browser gives no answer. $lines = file($_FILES['arquivo']['tmp_name'],FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);…
-
0
votes1
answer28
viewsCompiling file . il (Intermediate Language) with admin permission
I’ve been doing a lot of research on how to insert certain parameters into an already created executable. And I arrived in that post of the Stack But the program initially has administrator…
-
0
votes1
answer22
viewsLoad application package image using File
Good morning, How do I load an image that is inside a project package using the Java File class? Example, I have an image inside the "img" folder of my project and I want to upload this image to…
-
0
votes1
answer3022
viewsFind file using Python
I have a question, how to locate a file using python. The goal is to locate a file inside a directory and return all the way from the directory where the file is and if you do not find the file,…
-
0
votes1
answer56
viewsWhy doesn’t he run my read() since I opened it for reading and writing at the same time
The code below allows me to write, but does not show me the content of what I wrote in the file with the read method() filename = input('Informe o nome do arquivo: ') filename += '.txt' arquivo =…
-
0
votes0
answers23
viewsSave temporary files in sessionStorage
Hello, I wonder if it is possible to store files in sessionStorage and how I can do it. I tried with JSON.stringfy() and JSON.parse() methods and no success as follows var elemento =…
-
0
votes1
answer1270
viewsHow to find position of occurrence of a String in a JAVA file?
I am having to implement a work for the college, where I need to read a text file, word for word, save them in a hash table and then, according to other words read in a second file, report the…
-
0
votes2
answers45
viewsDeleting files from a PHP directory
I have a directory with images and need that each time you start the program the images are deleted except one. I have for now the following code: $dirtmp = "fotos/tmp"; $ditmp = new…
-
0
votes2
answers53
viewsAutomate sequential file opening?
I want to open several binary Java files at once, but I don’t want to instantiate them all manually this way as follows in example. Is there an automatic way, or a method so I can speed this up?…
-
0
votes0
answers284
viewsSend a JSON + Multipartfile to an endpoint. Spring Boot
Hey, guys, all right? I’m doing a project and I got stuck in a certain part. Summarizing what needs to be done: I need to create an endpoint that receives a JSON from a Person object (Name, Password…
-
0
votes1
answer518
viewsFiles For Structs/C Pointers
I have this little program and I’m able to save, and upload from the file to struct(not perfectly). The error is as follows: after loading the file to struct, if in the function I load the printf it…
-
0
votes0
answers11
viewsproblems with Inputstream, Filenotfound
I am making a game in it contains several images and sounds that stay in the project folder when exporting the . jar all the imports disappear said my problem is that I was using ImageIO.read(new…
-
0
votes1
answer52
viewsAdapt txt file reader
I was using a manual method to grab a txt file, where the user typed the file name and extension and pressed the button, now that replace by a code that opens a search box to choose the file on the…
-
0
votes1
answer259
viewsUpdate a CSV line without having to go through it all c#
Could I update a specific line of the CSV file? i have the information of which line I want to add information, currently I have the code that goes through the file and when it arrives in the line I…
-
0
votes1
answer697
viewsImport org.apache.Commons.io.input library from Java to Eclipse
I need to use the class Reversedlinesfilereader, which belongs to the org.apache.Commons.io.input library. @Tommelo told me that I should include a dependency of this library in the archive pom.xml…
-
0
votes0
answers56
viewsFailed to open file after application installation in C# WPF
I’m creating a C# installer using visual studio 2017 installer project in this project there is a user manual it is contained in the root of the project, when I run it either in Debug or Release…
-
0
votes0
answers42
viewsScroll through the values of an input file in PHP?
I’m trying to go through an array of various images in PHP, however, I’m not getting it, follow the code below: HTML: <input type="file" name="img[]"…
-
0
votes1
answer108
viewsProblems with permission
I have a server where five websites are hosted. One of them has a system where you download a file that is in the hosting of another site, but of the same server. The file is there, but at the time…
-
0
votes3
answers1096
viewsGetting a binary file and saving it again
I’m running a test with a simple code, but it’s going wrong. I simply want to get the contents of a binary file that is an image (jpg), and save it again under another name. My code is this: String…
-
0
votes1
answer44
viewsInvalid argument for chmod()?
I’m trying to receive the dimensions of each photo sent, but when I run the file happens this: Error: Warning: chmod(): Invalid argument in C:\Program Files (x86)\EasyPHP-…
-
0
votes1
answer103
viewsInclude spaces when reading C strings
Good staff I have a C job to do, where I have to read information from a txt. Each string follows the following format: 12345António Manuel Silva Mendes Frankfurt Varsovia 1 It always has a…