|
Hi!
I'm creating a file in data/data/myPackage/files/ :
file = new File( getFilesDir() + "/file.txt");
I'm absolutely sure that the file is created.
Right after its creation I call:
file.canWrite();
and the result is true.
When I try to use that file
...
Started by Tsimmi on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
When you say "I try to use that file" what do you mean? Can you post the code for that as I think that ....
If you know the file is being created using to it's own files.
You a FileOutputStream so you can start writing to it .
|
|
One of my user's Outlook create files with the ".com" extension when they view an e-mail that contains JPG. There's no detectable virus or trojan on this computer. However, Comodo is complaining about ".com" files being created automatically. Is there...
Answer Snippets (Read the full thread at serverfault):
Detected.
If viewing a JPEG results in a '.com' file being created, it's a virus.
|
|
I've created a small Bash script that does a MySQL data dump. Because the dump can be fairly large I put the process in the background and then wait for either an error or the log to show up in the file system. I have the following code:
mysqldump main...
Started by null on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The redirection file is created whether.
Err respectivly) and then executes the actual command.
|
Ask your Facebook Friends
|
Is there a good way to get the process name that created a file in Windows?
I have a directory on a Windows 2000 Server
C:\WINNT\Temp that is filling up with files named like:
70618199
21834082
They are always 121,201 KB in size.
Programatically can I...
Started by tyndall on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
You watch a file, but you can see if any current running processes are accessing that temp Command-line Handle App and pass the file name in and read the console output to try to catch the source application with an open handle to the ....
|
|
People these days create their ZIP archives with WinZIP, which allows for internationalized (i.e. non-latin: cyrillic, greek, chinese, you name it) file names.
Sadly, trying to unpack such file causes trouble: UNIX unzip creates garbage-named files and...
Started by alamar on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
In addition, of course, the zip library you use.
In the zipfile, not the encoding used in the files contained in the zip file)
The zip spec doesn't allow in the zip file carries that information.
|
|
Hi all,
Windows Win32 C++ question about flushing file activity to disk.
I have an external application (ran using CreateProcess) which does some file creation. i.e., when it returns it will have created a file with some content.
How can I ensure that...
Started by John on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Rename the file to "file has....
Write into the database, "updated from file to disk.
Then update the database.
[EDIT] The most simple solution is probably to copy the file in your process in the database".
Of the other process.
|
|
I have created a file with
XmlDocument xmldoc = new XmlDocument();
Can I make this file as downloadable? without saving it?
Started by Vikas on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
If you want to download the XML document created by the XmlDocument class the XmlDocument somehow - if you'....
You could do something like a Custom HTTP Handler.
Relevant properties so client browser will understand it as a file download.
|
|
How to identify the file has been created completely in c#..
Which command do we need to use to see that the file has been created completely.. some large file takes time to create completely how to identify them..
Thanks
Started by Solitaire on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
On it, e.g.:
private static Boolean FileInUse(FileInfo file) { Boolean inUse = false; try { using:
http://stackoverflow.com/questions/30074/monitoring-files-how-to-know-when-a-file-is-complete
private static Boolean FileInUse(FileInfo....
|
|
How do I use the UNIX tool 'find' to search for files created on a specific date?
Started by sverrejoh on
, 10 posts
by 10 people.
Answer Snippets (Read the full thread at stackoverflow):
In this case, the file is 2008-10-01 at midnight
touch -t 0810010000 /tmp/t
Now we can find all files that are newer....
Ago: -ctime 30
It's two steps but I like to do it this way:
First create a file with a particular date/time.
|
|
Can a PHP script unserialize a Storable file created with Perl?
Started by Rakesh on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Dump -e 'print Dump( retrieve( q{$storable_file_path} ))'", "r" );.
|