Questions tagged as 'arquivo'

3
answers

php file_exists function - relative and absolute path

In PHP applications, when I use absolute path, everything works perfectly, but when I use relative path, it does not work. An example: in my application I have to use this: file_exists("/var/www/html/meus_projetos/dgnetwork/public_html/mode...
asked by 31.10.2015 / 18:43
1
answer

how do I get an image from an input file?

Someone tells me, what do I need to get a picture of the input file and show it or save it? Do I need to use javascript? or just the html and php? I've researched google, but I'm not finding something explaining step by step, I've already tri...
asked by 24.10.2015 / 00:52
1
answer

Failed to copy an entire directory and its files

I need to copy an entire directory containing files inside using Java NIO2 with FileChannels . But I can only copy the files into the directory. Here is the code I'm using to copy the files: public static void copiaDestino(File...
asked by 27.08.2015 / 00:33
2
answers

File manipulation

Hello. I have a problem with handling create and manipulate a file in C. First I made the whole code using a struct and functions, it worked everything right. I put the commands to create the file and it is also ok. My problem is when you ope...
asked by 20.06.2015 / 22:07
1
answer

Executable created by CodeBlocks opens and closes alone

I have a problem with my program in CodeBlocks. When I compile and run the program, CodeBlocks creates an executable in the Debug folder that is inside the bin folder, located in the same folder where the project is. When trying to open the .exe...
asked by 28.07.2015 / 06:37
1
answer

Java: FileReader reading number that is not in the file

I have this TXT: 1,2,4,8,7 45,18,27,35,44 17,45,2,8,6 And I want to read this array to a Java array. Here is the code: public static void main(String[] args){ double[][] pesos = null; String valorFinal = "";...
asked by 23.05.2015 / 04:03
1
answer

Remove text file

I'm having trouble removing a text file in C. Shortly after using the fclose () function, I use remove () indicating the name of the text file, but the file is not deleted (the remove () function is not returning 0); What could be happening?   ...
asked by 26.04.2015 / 03:27
1
answer

Check if file is newer and then download

I created a windows service, which daily downloads some files. These files are about 2Gb (that's right, two gigabytes!). The problem is that these files are available every day on the site, but are updated randomly on a weekly basis, that is,...
asked by 26.11.2014 / 12:53
1
answer

How to compress my Resources files

I'm developing a Battle-Naval game (I'm still a beginner on programming) and I'm adding some songs and images. My problem is that this is increasing the size of the project / game too much and it gets in the way. Is there any way to compre...
asked by 21.10.2014 / 16:15
1
answer

Reading values from a file in C

I have a file containing the following values: 10 20 30 40 50 60 For each row, the values must be stored in a vector. How do I get such values from the file, knowing that there is no exact quantity for each line?     
asked by 11.08.2014 / 15:00