file

file hidden flex vista

is there any way to create a file as a hidden in vista, xp, 2000,98 ,macintosh from flex by using var file:File = new File(""); or any other way ...

Ruby File.size for directory returns 0.

The documentation say: File.size(file_name) => integer Returns the size of file_name. File.size?(file_name) => Integer or nil Returns nil if file_name doesn‘t exist or has zero size, the size of the file otherwise. On practice (ruby 1.8.7 i386-mswin32): File.size?('c:/dir') # => nill File.size('c:/dir') # => 0 ...

Tool to recursively search all files in a directory for a string

Possible Duplicate: Tools to search for strings inside files without indexing Before I make one, any good tools out there for free/cheap that will recurse through all files in a directory and search for a text string in them? Need to find an instance of a string in any configuration files laying around. Kind of like a Windows S...

Writing file to web server - ASP.NET

Hello all... I simply want to write the contents of a TextBox control to a file in the root of the web server directory... how do I specify it? Bear in mind, I'm testing this locally... it keeps writing the file to my program files\visual studio\Common\IDE directory rather than my project directory (which is where I assume root is when...

Packaging External File Dependencies in Flash

I just started learning ActionScript, so maybe this is obvious. I'm loading in .txt files to generate content for my Flash application. However, I can't seem to find a way to package the .txt files with the .swf when I publish my application. I'd like to be able to run the .swf from anywhere without it depending on the files. Is ther...

Need Algorithm to group files of varying sizes into approximately equal blocks

Hey folks, I'm trying to figure out an algorithm that will help me group an assortment of files of varying sizes into say, 'n' groups of approximately equal size. Any ideas on how to achieve this? ...

how to unzip a encrypted zip file

in winzip we can able to encrypt a file using some keys.In my android application i using the encrypted zip file.i know the way for unzip a file(without encryption).but how can i unzip the encrypted zip file in android? ...

Checking for write access in a directory before creating files inside it.

Hello My small utility application asks the user for an output directory via a GUI file selector. Then it creates a lot of files in this output directory after some processing. I need to check if the application has write access so that it informs the user and does not continue with the processing (which might take a long time) My fi...

How do I load a PHP file into a variable?

Hi, I need to load a PHP file into a variable. Like include(); I have loaded a simple HTML file like this: $Vdata = file_get_contents("textfile.txt"); But now I need to load a PHP file. ...

django problem uploading and saving documents

Hello, I am working on a django app. One part would involve uploading files (e.g. spreadsheet or whatever). I am getting this error: IOError at /fileupload/ [Errno 13] Permission denied: 'fyi.xml' Where 'fileupload' was the django app name and 'fyi.xml' was the test document I was uploading. So, I used chmod and chown to make the ...

Eliminate part of a file in python

Hi all. In the below file I have 3 occurrences of '.1'. I want to eliminate the last one and write the rest of file to a new file. Kindly suggest some way to do it in PYTHON and thank you all. d1dlwa_ a.1.1.1 (A:) Protozoan/bacterial hemoglobin {Ciliate (Paramecium caudatum) [TaxId: 5885]} slfeqlggqaavqavtaqfyaniqadatvatffngidmpnqt...

Export GridView to TXT, then upload file to server

Basically what I want to do is export an array (or GridView) to a file called "getpathin.dat". That is easy, but the method I am using downloads the file to my computer, which is what I don't want. I want to write an array to either a PRE-EXISTING file that is on the server OR create a new file on the server in a folder, and this new fi...

Renaming files in MATLAB

I'm trying to programmatically rename a file in the working directory from a = 'temp.txt' to b = 'hello.txt'. How would you suggest doing so? Is there an easy file renaming function in MATLAB? ...

gcc/gdb: How to embed absolute path to source file in debug information?

hello. i am just wondering if i can tell gcc to embed the absolute path to a source file in the debug information, even if i call gcc like gcc -g ../src/somecode.c -o ../bin/somecode.o as i see it atm, gcc just stores what you provide, so if you provide a relative path, at the end, gdb only knows the relative path as well. is there ...

file flex air exec

i read this [link][1] thread . but currently i installed air 1.5.2 but cant be run fscommand() function is there any information? pls help me [1]: http://forums.adobe.com/thread/464862file flex air exec ...

What are the other ways to determine two file contents are identical except for byte-by-byte checking?

To compare byte by byte surely works. But I am wondering if there are any other proven way, say some kind of hashing that outputs unique values for each file. And if there are, what are the advantages and disadvantage of each one in terms of time and memory footprint. By the way, I found this previous thread http://stackoverflow.com/q...

Documenting a File Format

We're developing an application that receives a lot of it's input from a custom file format we've defined. The input files are produced by an application being developed by a third party so naturally we need to be able to communicate effectively what is and isn't acceptable input into our program. The file has a header portion of 10 li...

How to get the file info which is selected in a listBox?

I have a Windows application that takes the data in the textboxes and writes them into a randomly generated text file, kinda keeping logs. Then there is this listbox that lists all these separate log files. The thing I want to do is to have another listbox display the file info of the selected one, the 2nd, 7th, 12th, ..., (2+5n)th lines...

flex C exec file

is there any way to execute C language executable file from Flex? ...

How can I get the count of line in a file in an efficient way?

I have a big file. It includes approximately 3.000-20.000 lines. How can I get the total count of lines in the file using Java? ...