Questions tagged as 'arquivo'

1
answer

How to capture file size of System.Drawing.Image?

I have a method to which I pass the parameter System.Drawing.Image and the percentage that that image will be after resize . public static Image ResizeImagem(Image imgFoto, int percentual) { float nPorcentagem = ((float)percentual / 1...
asked by 19.11.2014 / 14:11
1
answer

Read file in binary

Hello, I'm saving a file in binary format and trying to open the same binary. However, I'm not getting the expected result. Here are the writing and reading functions. I am saving a .ppm format image, but when I try to bring it back to ASCII fil...
asked by 12.11.2014 / 01:04
1
answer

Permission denied accessing file

I have a function in my program where it shows all the students registered in a binary file, the user selects which one to delete, a confirmation screen with the user data waiting for the input appears for then deletion confirmation occurs....
asked by 08.11.2014 / 13:43
2
answers

Read a string separated by a comma

My reading has been set to the point of comma, but he is reading every field to the end of the line when you read the string. The code is read correctly, but only in code. #include <stdio.h> #include <string.h> struct setorEletron...
asked by 02.12.2014 / 19:36
1
answer

Check file creation date and delete

I created a Backup application, it saves zipped files in DD-MM-YYY - 00-00-00.zip format, but I would like to know how I would do the create date check for deletion, because the files' names are different for saving to the seconds. Sho...
asked by 04.11.2014 / 14:00
1
answer

check if a certain field is the same as desired

I would like to check if a particular field in a list is equal to == "Open" def mostrar(): with open("ficheiro2.txt") as arquivo: i=0 for linha in arquivo: linha = eva...
asked by 02.01.2019 / 14:57
1
answer

Read a string from a file with space

Hello, I want to read a file line and then return the number of spaces as well, but first I'm trying to return the entire string but when I enter a space the rest of the string is not displayed after that. void LerArquivo() { FILE *fp; char st...
asked by 01.11.2018 / 01:41
1
answer

File with strange characters

I have a string that receives an input value from the keyboard and a file that contains a string. What I need to do is compare the string typed with the file string and see if they are the same, but I went to see what kind of string the file was...
asked by 13.08.2018 / 20:26
3
answers

Uploading PHP files

Good Night, I'm currently creating a CRUD, where you'll need to upload a file. But I have the following problem: Currently I can upload the file normally, placing it inside a folder in the application and saving the path in the database, it s...
asked by 06.01.2018 / 00:01
1
answer

How to pass a .txt file to a function

I would like to create a function that receives a .txt file and does something with it, but I do not know how to set the send and receive parameters, or if I should do parameter passing by reference. Send file to function: funcaoRec...
asked by 09.12.2017 / 00:18