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
-
-1
votes1
answer1372
viewsHow to write to a txt file in Python?
How to open a txt file and add the contents of some variable in it? For example, a content that leaves the print in the code below. for passw in senha_list: print(passw,end='')…
-
-1
votes1
answer49
viewsHow do I associate a car with a driver in that code that I made
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <conio.h> #include <locale.h> typedef struct Motorista{ int driver_id; // id do motorista int idade;…
-
-1
votes2
answers57
viewsStructs not fed
Dear Programmers(s) in C, good night, I ask for help for the following case: I want to feed an array of structs to each interaction in a line of a file, the problem is that, although I can read the…
-
-1
votes2
answers523
viewsFile encoding in ASC II
I am developing a php application that generates shipping files to the database and these files have to be with the specifications below: Coding System - Low Platform ASC II - including the file…
php filing-cabinet character-encoding file-systemasked 6 years, 7 months ago Leandro Silva Campos 543 -
-1
votes1
answer237
viewsConverting list to float array
I am working on an import of data, which are in format, as in the example: [-2.814285863362681, -2.814158589901394, -2.8123844084634873] [-2.874285863362681, -2.054158589901394, -2.6523844084634873]…
-
-1
votes1
answer117
viewsWrite a line in text file without using repeat instruction, is it possible?
I need to write a text file from a Dataset in C#, so it will look like: string[] lines = {"First line", "Second line", "Third Line"} using(StreamWriter outputFile = new StreamWriter(docPath)){…
-
-1
votes1
answer151
viewsjava Import video file (.mp4)
I need to import a video file (.mp4) and store it in a Bufferedimage[], so I can work with each frame as if it were an image. my code(the part with (??? ) is where I did not agree): public class…
-
-1
votes1
answer218
viewsPython - Strings and files
I’m starting to learn Python files. What suggestions would you give to improve the code and make it more beautiful or smaller? """ A ACME Inc., uma empresa de 500 funcionários, está tendo problemas…
-
-1
votes1
answer634
viewsHow to compare string in text file with user imput and do validation?
At the end of this code, I’m trying to read the names of some countries and compare with user input, but I’m not getting results. It keeps repeating. If it finds, the program has to follow the flow…
-
-1
votes1
answer944
viewsJava: find files in directory
I have a simple function to search a file in the application directory and return it, however the return is always being empty, I could not find where the error is. Path currentRelativePath =…
-
-1
votes1
answer30
viewsSequential reading of data from a file
I have to read a file in which the first line represents the number of registered students and in the following lines occurs the name of the student followed by his grade in the two tests. It seems…
-
-1
votes1
answer161
viewsLaravel File Reading and Writing
I’m trying to read a file that comes from a form. When I send it to the Controller, I have to read the file and look for a line, if it exists, add a line right below. Doubts: 1- I can find the…
-
-1
votes1
answer27
viewsHow to read an object from a file?
Personal when I try to read the objects saved in a file appears the following error message. Nome: Gabriel Código: 123 Telefone: 12345678 java.io.StreamCorruptedException: invalid type code: AC at…
-
-1
votes1
answer2030
viewsRead only specific lines of . txt files in C
Hello, I want to read a file .txt and get a specific name on it. I have the following code that does this, but checks on all lines of it. #include <stdio.h> #include <stdlib.h> #include…
-
-1
votes1
answer110
viewsNginx forwarding without proxy
I’m setting up Nginx to receive requests and delegate to a Nodejs server. But there is a url/route that needs to render a static html outside the Nodejs server. Case similar to this: upstream…
-
-1
votes1
answer30
viewsString is not being saved to a text file
I made this code whose purpose is to read any string (Maximum size 30), and to write this string in a text file. After reading the string, the program is terminated normally (No errors), but when…
-
-1
votes1
answer149
viewsWhich file type should I use to store the python data
I am creating a program in Python that needs to store some settings and also need to save the data in a file of its own (Like Autocad that generates files in the format . DWG). So far I’ve used a…
-
-1
votes1
answer217
viewsTreat File as String in Nodejs
I am having the following problem : I wish to carry out the count of line breaks, ie the amount of '\n' in a file. For this, I wish while reading the file to treat it as a String. I am trying it as…
javascript node.js filing-cabinet fs newlineasked 4 years, 8 months ago Gabriel Ribeiro Carneiro 81 -
-1
votes1
answer44
viewshow to take a single text from a specific line in a python txt file
I am making a mini system to register products and change their quantities, but I am dealing with a problem of deleting a part of the text in a certain line, for example: '00000 1' to '00000…
-
-1
votes1
answer128
viewsSave values from a text file to an array
I’m trying to make a code where I need to store numbers from a text file in an array. The code I have is this:: #include <stdio.h> int main() { FILE *f; int v[10]; int N=0;…
-
-1
votes1
answer75
viewsf. write (python) writes "None" to the file
Hello, I am beginner and am trying to create a program that generates a text file but each line being random (based on predefined phrase). The code works and does not return errors at the prompt,…
-
-1
votes1
answer80
viewsHow to generate a file from a doubly chained list?
I could not in any way make my program save on file at the end. #include <stdio.h> #include <stdlib.h> #include <string.h> #include <locale.h> struct stNo { int info; char…
-
-1
votes0
answers8
viewsHow to open a resource entered in Xamarin Forms
I am trying to open a file . shp which is inserted in a folder(Sampledata) within the project, however returns the Exception >>> System.IO.Ioexception: 'The file specified does not exist.'…
-
-2
votes1
answer776
viewsStrange txt symbol that prevents SEFAZ from reading . txt
I’m generating a file .txt with information from an electronic invoice, this is imported into the free application of the SEFAZ government for note generation. The genexus is generating the file .…
-
-2
votes1
answer490
viewsFolder and image address with bootstrap Carousel
How I modify this DIV to accept a folder and image name? **<div class="fill" style="background-image:url('http://placehold.it/1900x1080&text=Slide Three');"></div>** Switch to…
-
-2
votes1
answer84
viewsProblem removing data from an Arraylist
Good afternoon, I am having a certain difficulty in reading and writing the data in an arraylist. The data from my TXT file: Mark 12345 Rafaela 54321 Kaique 12345 Matheus 54321 Just follow my code:…
-
-2
votes1
answer332
viewsFile_exists solution in php check
Alternative function for the file_exists function() define('BASE', 'http://localhost/seusite'); public static function checkImageExists($urlImage) { $filename = BASE . "/uploads/{$urlImage}";…
-
-2
votes1
answer26
viewsrenaming file with Posix c
I have a file called Tempfile.txt I made the following script in c to rename file receiving the file name to be renamed and the new name, but it is returning this error: Error renaming file: Bad…
-
-2
votes1
answer496
viewsHow to check if a file has been added to a java directory?
I need a program in Java, check if in a directory was added some text file. Could someone help me ?
-
-2
votes1
answer30
viewsA function that reads only the last integer number written in a text file and returns?
FILE * save; int funcao () { int d; char linha[100]; save = fopen ("light.txt" , "r"); if (save == NULL) { …
-
-2
votes2
answers1589
viewsHow to pass CSV file data to an array in Java?
I have a. CSV file with several numbers in two columns (1032,54832). I need to take these numbers and pass them to an array. How do I do this? I made a code to import the file and I can display the…
-
-2
votes1
answer109
viewsHow to separate a string from a file that contains a sequence of chess rounds?
I need to read a file that will be encoded as the example: 1.e4 e6 2.Nf3 d5 3.Nc3 Nf6 4.e5 Nfd7 5.d4 b6 6.Bd3 Ba6 7.O-O Be7 8.Ne2 Bxd3 9.Qxd3 c5 10.c4 Nc6 11.cxd5 Nb4 12.Qe4 Nxd5 13.Qg4 Kf8 14.Nf4…
-
-2
votes1
answer25
viewsHelp with creating a file algorithm. c
Hello I’m having trouble developing an algorithm that reads a.txt file, fix the text and create the result in another output file. The read process should occur line by line, but the input file has…
-
-2
votes1
answer58
viewsUpload file (image), with PHP to send to AWS S3
Currently I have a script that I get the image from a post like this: $amazonS3 = new AmazonAwsS3; $amazonS3->uploadFile($_FILES['anexo']['tmp_name'], $_FILES['anexo']['name'],…
-
-2
votes1
answer122
viewsA function that takes the names of two files as arguments
Program containing a function that takes the names of two files as arguments. The first file contains student names and the second file contains student grades. In the first file, each line…
-
-2
votes1
answer147
viewsTurn a list into a python pandas csv
I have the following code that scraps data from an auction site: lista = [] for pagina in range(1,34): url =…
-
-2
votes1
answer15
viewsPHP+File uploading error
Good morning, everyone. I’m trying to do a simple PHP video upload. My HTML code is here: <html> <head> <title>Aproveite o site</title> </head> <body> <form…
-
-2
votes0
answers24
viewsHow to scroll through a . csv file and jump to the next line via Javascript?
I have a file .csv with 3 columns separated by comma, I need to go through this file and each row skip to the next until the end of the file, but when going through this file in my for it is always…
-
-2
votes1
answer26
viewsHow to store special characters in strings and print to files?
Recently I’ve been working on a C project that involves printing some strings in a txt file. However, when I put special characters and accents are printed some strange symbols, like ‡ and Æ. I made…
-
-2
votes0
answers9
viewsRecover a corrupted text file
Guys, I’m trying to help a friend of mine who lost an important text file, he used some programs to recover the deleted file but in all the file becomes unreadable with some absurd characters, I…
-
-3
votes1
answer100
viewsUpdate lines in ods file using python
I am looking for a way to update some lines of an existing pre file in ods format using the python language. I managed to create a new file using the code block below, but the need would be to…
-
-3
votes1
answer43
viewsRead file and count repeated elements
Hey there, guys. I need some help solving a cucumber quickly. At work I have a file that has 18 characters per line (more than 600 lines). I need to read each line and in each line read 6 characters…
-
-3
votes1
answer66
views(C++) How to make a program write to 2 different files?
I made 2 attempts, the first one is error, and the second one does not write. could help me? #include<iostream> #include<fstream> #include<string.h> #include<stdio.h>…