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...
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...
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...
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...
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...
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 = "";...
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?
...
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,...
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...
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?