Questions tagged as 'arquivo'

1
answer

Open a file using secondary function

I need to create a function that "points" a file pointer to a particular file in the computer's memory. I was able to do this: #include <stdio.h> void abre(FILE*); void procedimento(); int main () { procedimento(); return 0; }...
asked by 02.09.2015 / 15:49
1
answer

How 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 an extension of figures created by me. If the file already exists, I check with the user if he wants to overwrite the existing file. How should I proceed? Than...
asked by 15.05.2015 / 04:32
1
answer

Why can I only handle files with pointer?

In the statement I always have to put FILE *Arq; If I put it without * it gives an error. What is the reason?     
asked by 20.09.2018 / 21:24
1
answer

Import and manipulate json in Python

I'm trying to import an .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 In Texas Last Week, But Only 1 On TV date:201...
asked by 30.10.2018 / 00:15
2
answers

How can I export the output to a text file in C?

I want to pass the program output to a .txt file, how would I do it?     
asked by 24.07.2018 / 22:10
2
answers

Generate files with all permissions

I'm generating * .csv files from this: BufferedWriter strW = new BufferedWriter(new FileWriter(caminhoCSV.toString())) But the generated files are only read-only, how could I change this so that the generated file has read and change permis...
asked by 24.08.2017 / 20:19
2
answers

Function FWRITE is not writing in binary format in C language

I am not able to write data in binary to a file using the C language. Even using 'wb' the output of the file are characters. How can I proceed? Here's part of my code: void cadastrar(void) { if((fp=fopen("Jogos.dat", "wb"))==NULL)...
asked by 18.05.2016 / 14:01
1
answer

How to select more than one txt file with C #

I am writing a C # application that needs to receive more than 1 text file and display the Filename of them in an individual MessageBox for each. My question is in this file import, I was using OpenFileDialog to select th...
asked by 16.03.2016 / 18:52
1
answer

Serialize / Deserialize DateTime

I'm saving to a text file a serialized object that only contains fields of type DateTime, but the date is saving wrong. I'll demonstrate with an example what I'm doing. My DataBaseViewModel object contains two fields of type DateTime [Se...
asked by 09.11.2015 / 19:45
1
answer

How to save byte array to file in PHP?

I have a array which is an image that is saved in the DB, which method do I use to save to the hard drive?     
asked by 16.01.2015 / 00:18