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
answer938
viewsHow to copy the contents of two files into a third file in c?
I need to create a file that is a copy of the contents of two other files (already existing), the user will type the name of these two files. In my case, the first file contains: "hi, banana,…
-
1
votes1
answer2173
viewsHow to create a C Ranking?
How can I read and sort a text file where the information is like this: carlos 5 lucas 20 josue 10 *On file it looks like this. Saved randomly but when I read the precise information it is in the…
-
1
votes1
answer41
viewsRead a string from a File with space
Hello, I want to read a file line and then returns the number of spaces too, but first I’m trying to return the entire string but when I enter a space is not displayed the rest of the string after…
-
1
votes1
answer46
viewsOpen files that will be shared between various functions, inside or outside the functions?
Next, I’m making a program that I’m going to divide between the function module and the interface, and I need to use files in this project (and I can’t use classes), it turns out I need to use these…
-
1
votes2
answers363
viewsFile reading
I need to read from a file the amount of tests to be done and which tests to be done. The input file is as follows: 4 //Numero de testes a serem feitos 1 LINSIMP 3 //Primeiro(1) teste que verifica…
-
1
votes1
answer992
viewsGrab a network java file
I managed to open a file and put it on a Jlabel on the machine where I am developing. But when I put the application on the network the machine that is on the network, it does not locate the file.…
-
1
votes1
answer59
viewsError in reading file
I need to create functions that read from an.txt input file: Number of points Coordinates of the points Number of lines Number of vertices of each line Coordinates of each vertex of the line…
-
1
votes0
answers30
viewsMini Akinator - allocate line by line.txt file in vector
I am improving a code I made for a college job. A very simplified version of Akinator. Before I did everything in the main code, now I want to read the characters of a txt file. I already created…
-
1
votes2
answers726
viewsHow to read numbers from a txt file in C#?
This is an example file: 2 0.03159527 0.1990048 0.9794891 0.02173799 0.9969404 0.07508247 The first number indicates how many lines are, for each line are always three numbers I tried to do…
-
1
votes1
answer369
viewsWhy . dat and not . txt?
I’m doing a job for my college in C language, it would be basically the entire shoe store system, with file manipulation. Looking for some examples of CRUD on the internet I found several that make…
-
1
votes0
answers161
viewsWhich is the most correct way to store files
I always run into this question when I have to work with file storage inside a software. It is ideal that I simply record them in any folder and record the information in the database, with a field…
-
1
votes0
answers25
viewsInventory of Archives
I am learning to program and I would like to know if you have any way to create in python a list of network file inventory, contento as follows situations: Network Path: rg2srv0164…
-
1
votes2
answers293
viewsAccentuation in the directory
I have a directory location problem when it involves an accentuated file or folder. Follow the section below where I try to capture the file size: $filepath = "$novocaminho".utf8_encode($arquivo);…
php filing-cabinet directory accentuation zend-framework-2asked 7 years, 3 months ago Jonathan de Toni 1,260 -
1
votes2
answers1174
viewsData Comparison in Files [C]
I want to make an algorithm that takes a name in an X file and see if this name exists in another Y file, if it does not exist it writes that name in a third Z file. (Basically an algorithm that…
-
1
votes1
answer136
viewsFile closure
I need to leave the file free, without getting in use, because it is blocking. Follow the code: StringWriter sw = new StringWriter(); XmlTextWriter tw = new XmlTextWriter(sw);…
-
1
votes1
answer56
viewsPassing by reference, and saving data from a file in a vector
I’m having trouble saving the read data from a text file and a vector from a structure I created. My goal is to open a text file, take the data that is saved in it, and save in an array of type…
-
1
votes1
answer82
viewsReading only odd records
Initially, I had to create a program to save data from a struct to a file. The struct is as follows:: typedef struct { char nome[30]; int matricula; char conceito; } TipoAluno; I made the program in…
-
1
votes2
answers387
viewsSave file data to a c++ map
I am not able to read a txt file correctly and transfer to a map in c++. The code I developed works only if you don’t have spaces " " in txt, if you loop and it doesn’t work. Here’s the code: void…
-
1
votes4
answers1081
viewsGet the contents of the last line of a Java file
I need to recover a file always the last line written. I know one way to do this would be: import java.io.FileInputStream; import java.io.InputStreamReader; import java.io.LineNumberReader; public…
-
1
votes1
answer222
viewsProblem with Stack Algorithm
I started programming in C# recently and I’m already having some problems... I took a URI exercise to train and I have a "mistake" that I don’t know how to solve. Anyway, here’s the situation: The…
-
1
votes0
answers42
viewsHow to save questoes in an array of pointers
Good night I come here to try to dispel a programming problem that occurs to me. In this solution, I have a file with several questions, and each question can be a matter of one of the 3 following…
-
1
votes1
answer620
viewsHow to read TXT to a certain point and then continue from that point?
I have a class that is responsible for reading a TXT file part by part and return me a result according to this part. This result will be used by another class. That is, I open txt I read to a…
-
1
votes0
answers60
viewsError in output file
In an exercise, I need to read an input file as follows: # add # Jabuticaba # Fruto de jabuticabeira. Jabuticabeira. # add # Vacilar # Não estar firme. Cambalear. Oscilar. Tremer. # add # Jacapa #…
-
1
votes1
answer1350
viewsConvert file to Array of bytes
I’m trying to convert a received file into FileUpload (ASP.NET tool) for a array of bytes and then the array for a string. But when trying to use the Encoding Visual Studio accuses an error saying…
-
1
votes1
answer49
viewsCreate an algorithm that saves data in HD
I created a simple schedule to record a user’s contacts, but the teacher asked for the data to be saved in hard drive to preserve contacts even after shutting down the computer. I have to write all…
-
1
votes1
answer2132
viewsHow to pass an file . txt to a function
I would like to create a function that receives a file .txt and do something with it, but I don’t know how to define the sending and receiving parameters, or if I should pass parameter by reference.…
-
1
votes0
answers49
viewsImplementation of an DFA for reading multiple strings
I have to determine if the strings in the file belong to AFD. I was able to do just one string. The goal now is to read more than one string, but I could not do the implementation, always ends up…
-
1
votes2
answers1578
viewsInvalid characters in path in File.Move()
I have this code to move a file: string path = "C:\\inetpub\\beGoodToo\\videofolder\\nome.mp4"; string path2 = "\"C:\\Program Files (x86)\\Wowza Media Systems\\Wowza Streaming Engine…
-
1
votes0
answers589
viewsPython3.5 - Import multiple files from one folder
I have the following code: __author__ = 'Jones_Santos' # !/usr/bin/python3 import os from __init__ import mycursor, connection import csv import os from datetime import datetime, date, timedelta,…
-
1
votes1
answer1281
viewsHow to delete an entry from a Python file without having to read the entire file?
I have a file with the following entries: Ana Joao Pedro José .... And I need to delete the line with the name Pedro, it would be easy for me to read the whole file, save in a list delete Pedro and…
-
1
votes3
answers232
viewsUpload PHP files
Good evening, I am currently creating a CRUD, where it will be necessary to upload a file. But I have the following problem: Currently I can upload the file normally, placing it inside a folder in…
-
1
votes2
answers1571
viewsReading Binary File in C++
Good morning. I’m trying to make a read of structs that I inserted in a binary file, but is giving error at the time of reading. Follow the code of the reading function: void lerRegistros(char*…
-
1
votes1
answer130
viewsGet format in which text file was written in FORTRAN
Hello, I need to make a program that reads from an input file that has lines of text written in specific formats and processes the read information in order to create an output file with some data…
-
1
votes0
answers49
viewsWhy is there an error coming at the end of a file that ends with blank spaces in a while loop, using the >>read operator?
I want to perform a reading function of a "material" vector (I created this type with "struct"). The reading will be executed from a file. std::vector<material> material_read(std::string s) {…
-
1
votes1
answer873
viewsRead txt on Assembly i8086
I have the following code to read txt file: ; um programa que demonstra a criação de um arquivo e a ; leitura do mesmo .model small .stack .code start: mov ax,@data ; endereço de base do segmento de…
-
1
votes1
answer671
viewsCatch Delphi file size even though it is in use
I need to get the file size from Delphi 7 but am getting I/O error because the file is being used. (The file is a . exe and is open) I’ve tried the following codes: function…
-
1
votes0
answers85
viewsFunctions in File C
I’m doing a job that lists players and performs some functions using File on link C and I need the program to list in option 2 the player by name and in 3 by shirt number. My code so far: #include…
-
1
votes1
answer65
viewsFile with strange characters
I have a string that receives a keyboard input value and a file that contains a string. What I need to do is compare the typed string with the file string and check if they are the same, but I went…
-
1
votes0
answers66
viewsHow to make a Json_decode from a json file
Hello, I am currently storing data in json format in a fopen file. $json = fopen("$root/apil/Controllers/json/" . $this->getX_id() . ".json", "w+"); $customers_results =…
-
1
votes1
answer1293
viewsRead from txt file to char vector
I have a file dados.txt with (fictitious) Cpfs in the following format: 382031758-71 647900189-01 460754503-73 696170135-72 And so on, being in total 500 cpfs. I’m trying to read each and put in…
-
1
votes0
answers94
viewsDirect Link with page information
A few days ago Blogger changed their video sharing system. Before they provided 1 link like this http://www.blogger.com/video-play.mp4?contentId=e1b5b436fa4803e1 Now to have the video they put a…
-
1
votes1
answer1971
viewsImport and manipulate json in Python
I am trying to import a . json file with the following structure: short_description:She left her husband. He killed their children. Just another day in America. headline:There Were 2 Mass Shootings…
-
1
votes0
answers71
viewsTry to read a. txt file
Well I’m trying to read from a . txt file, but when I try to read and put in variables it’s giving me all the wrong info, now wrong places. I’ve tried to use Debug’s tool but can’t figure out why...…
-
1
votes3
answers143
viewsC# - Know location of database file dynamically
I am making a program using C# in WPF, and I need to access the database dynamically, in this case I am using a .mdf.file. In code I have connectionString like this: string stringConexao = @"Data…
-
1
votes1
answer115
viewsHow to find the lists that have a certain desired item
I would like to check if a specific item in a list is equal to "Aberta". def mostrar(): with open("ficheiro2.txt") as arquivo: i=0 for linha in arquivo: linha = eval(linha) if linha[i][2]=="Aberta":…
-
1
votes3
answers591
viewsAccess to the path 'path' is denied. VS2017
I am trying to create a file and save it in a folder created by me with the name "temporario". I created this folder on disk E: and inside my program, on disk C:. Using File.Create(file), error…
-
1
votes1
answer309
viewsCombine TIFF files on a multi-page TIFF C#
I’m making a program to convert and concatenate files. I wanted, after converting the PDF files into TIFF, to combine them into a single multi-page TIFF file. I’ve been looking for a long time and I…
-
1
votes1
answer357
viewsCheck existence of Python file with function
I searched all the repositories corresponding to my doubt here, but all are very direct when creating and reading part of files in Python, but I saw nothing related using function. Function to…
-
1
votes1
answer388
viewsHow to read a file in the same script directory using Lua
I’m trying to make a small script, but I’m facing some difficulties local lab = nil local f = io.open("/input-lab.txt", "r") print(f) I wanted to open a file that is in the same directory as the…
-
1
votes0
answers115
viewsError reading binary python file
good night. I am trying to read the contents of a binary file in Python to assemble a dictionary, but when reaching the end of the file the program is "flying" and I am not able to capture the…