hi, i want to delete all the contents that are present in a folder which includes files and folder too. I have written a java code to delete all the files but i am unable to delete the folders. below is the code i am using..
public void startDeleting(String path) {
List<String> filesList = new ArrayList<String>();
List<S...
Hi, this is a bit of a newbie question but I can't seem to find it anywhere. I have defined a class in a set of .h/.m files and have a separate .h/.m for drawing. What I'm trying to do is create an array of objects from this class, and draw them sequentially to the screen.
Of course, I'm getting a 'squares' undeclared (first use in this...
Let's say we have a binary file that contains 2 bytes that form an integer, in reverse.
So for example, the bytes show like this: (hexadecimal)
EB 03 00 00
Which should be interpreted as this:
00 00 03 EB
Which C# should be able to input as decimal 1003. Is this possible if you have the EB and 03 bytes already in memory in 2 diffe...
Thanks in advance for any assistance. I'm not even sure if this is possible, but I'm trying to get a list of duplicate files using their hashes to identify the list of files associated with the hashes.
I have this below:
Dictionary<FileHash, string[]> FindDuplicateFiles(string searchFolder)
{
Directory.GetFiles(searchFolder, "*.*")...
Hi
I have to solve a following problem.
there are many files let's say 3 for example, with the following content
file1
a1
a2
a3
a4
a5
a6
......
file2
b1
b2
b3
b4
b5
b6
......
file3
c1
c2
c3
c4
c5
c6
......
my program has to take filenames in parameter, read those files and print the following result
"a1 b1 c1"...
i have quite a lot of jquery files, like around 6 files, how can i sort them out. shall i put them all in one file, and upload it to a CDN, taking in account page loads etc.
p.s. im also using google jquery cdn!
...
hello,
i would like to know how can i check if i have write permissions to folder.
i'm writing a c++ project and i should print some data to a result.txt file.
and i need to know if i have permissions or not.
is the check deferent between linux and windows ? because my project finally should run on linux and currently i'm working on vi...
Say I have too programs a and b that I can run with ./a and ./b.
Is it possible to diff their outputs without first writing to temporary files?
...
Is there a theoretical or practical limit to the maximum number of open FileConnections?
Thanks!
...
Hi,
I have a FTP task in my SSIS package which deletes files from FTP location.
But the issue is that if the file(s) or directory is not available on the server, the task gets failed.
Is there any way that I can fix this issue?
Thanks
looking forward for urgent reply.
...
hello,
i'm using django and i've the following template for uploading files using SWFUpload
the sxf object show, the download prosses seam to be working but wen the progress bar reatch 100% nothing append next, there is no post data receved by the sever.
did someone know where i'm wrong?
debug:
SWF DEBUG: Event: uploadError : IO Error ...
Hello all
I am having an issue related to downloading files and showing in browser.When user clicks on file (basically a URL) it downloads a file into a folder and shows the file in browser in a new window. I am able to show PDF in window but when it comes to tiff files the browser opens a blank window and it redirects control to OS and...
Would the page load faster if I keep all my JavaScript files in a separate file say MyCode.js and reference that file? Or does it not really matter?
Thanks in advanced!
...
I have a function that needs to include a file, however this functions is used in a place from 200 to 300 times, this is obviously causing efficiency issues, is there a way to optimize this inside the function? (i know there are many ways in which i can fix this but it will cause too much impact in the whole application)
I will just put...
In a Linux or Mac environment, Vim's glob() function doesn't match dot files such as .vimrc or .hiddenfile. Is there a way to get it to match ALL files including hidden ones?
The command I'm using:
let s:BackupFiles = glob("~/.vimbackup/*")
I've even tried setting the mysterious {flag} parameter to 1 and yet it still doesn't return t...
How to get list of files that a program is working with?
For example, if a program is downloading something, how can I know what and where that file is while downloading?
...
We are currently reworking a big part of our code base. We choose to create a separate branch for this since the rework will take several months and we should be fixing bugs and updating the default with new features in the meantime. Obviously we want our rework branch not drift away from the default too much.
We decided to merge the de...
On opening a directory via zwopenfile(open directory option), it returns a handle for the directory path. Now I need to get the directory path from the handle. Its my requirement.
I could see an example(please see the code below) where file name can be fetched from file handle. But the below example does not help for directory. Is ther...
I am using NHibernate in a DAL layer dll. Local config file(app.config) is being used for db connection. This DAL component can be used in 2 different exe's and a NUnit test harness. Business requirement from Client is to have config information reside in exe's app.config file.
Is there a way to configure NHibernate to look for an ap...
I'm writing a simple bitmap editor for Android that supports layers. The state stored in memory for the image being edited is:
A series of bitmaps, where each one represents a layer of the image.
Each bitmap has an associated opacity integer and a visibility flag.
I want to add saving/loading for this state information. My plan was t...