file

Searching for a file with .java extension

Hi, is there any way that at first filter all files with the extension as "java" and then search for finding some files with that extension? can you explain with a snippet code?thanks ...

Linux: How would I pipe text into a program properly?

I've looked but can't find anything. A program for example, a TTS I use lets you do the following: ~#festival -tts | echo "I am to be spoken" Which is really nice, but for programs I use such as hexdump, I don't know how to pipe text into it. I can REALLY use some of these things, some examples I tried (but failed) are like so: ~#gte...

struts 2.0 file upload

how to no the current directory path in struts 2.0 ...

PHP file-handling; Special characters in folder names

I am using rename() to move a file from one folder to another with php. It works fine with folders which don't have the swedish å ä ö characters involved. Is there any way around this? (except for changing the folder names to something without special chars) The website is entirely in utf-8 format... ...

How to parse ical file(.ics) with ical4j API?

Anyone have idea of parsing the ical calendar file with ical4j API for android app using eclipse as development environment. I have added ical4j API, to my project, but getting some errors related to API. ...

How can i handle this Error in FileWriter???

Hi Guys I have a problem please guide me :) I write this method : public void createTempFile() throws Exception{ //CHTYPE & FINAL are Vector File file = File.createTempFile("Temp", ".txt", new File(System.getProperty("user.dir"))); file.deleteOnExit(); FileWriter fw = n...

how to add iCal4j dependencies in addition to the iCal4j library in android?

I am trying to parse the ical file with ical4j, i have added ical4j jar file to project but have problem in adding iCal4j dependencies in addition to the iCal4j library. As specified in http://wiki.modularity.net.au/ical4j/index.php?title=FAQ Any idea how can I do this? In addition to this, can anyone provide with ical file parse exa...

Perl - read file with encoding method?

Hi, im not too good when it comes to encoding and I am wanting to figure out how to return data as the same encoding it started with... I have a file with some characters in such as '»' by the time I have edited and and inserted into database they have turned into &raquo. decode_entities() does nothing and encode_entities encodes the c...

How to read in a data file of unknown dimensions in C/C++

I have a data file which contains data in row/colum form. I would like a way to read this data in to a 2D array in C or C++ (whichever is easier) but I don't know how many rows or columns the file might have before I start reading it in. At the top of the file is a commented line giving a series of numbers relating to what each column h...

how to store and search mp3 by its content.

I want to store multiple mp3 files and search them by giving some part of song, to detect which song it is. I am thinking of storing all binary content in mysql and when I want to search for a specific song by content I will take some middle portion of song and actually match it with the binary data in MySQL. My questions are: Is thi...

Printing to a file from a list of lists in Python

I am trying to print to a file that will look like: 'A' '1' 'B' '2' 'C' '3' Given the code below, however, the result is : ['A'] ['B'] ['C'] This is probably a 'softball' question, but what am I doing wrong here? l1 = ['1'] l2 = ['A'] l3 = ['2'] l4 = ['B'] l5 = ['3'] l6 = ['C'] listoflists = [l1,l2,l3,l4,l5,l6] itr = iter(listof...

Server is truncating output

I'm running Cherokee on a Linux server, and I have a simple script like this: $(function() { $('#avatars, #Avatar').hide(); $('shoo').change(function() { $('#avatars, #Avatar').hide(); }); }); But I keep getting Javascript parse errors. The reason is because if I access the script from my browser, it is truncated. The output is s...

loading a html file locally on the browser of a HTC HERO

How do you load a local html file into the browser on the HTC Hero mobile phone? ...

Why is File.Exists() much slower when the file does not exist?

Seems to me that File.Exists() is much slower when the file does not exist or the use doesn't have access than when the file does exist? This doesn't make sense to me. ...

WPF - save a rendered page as a XAML file

In a WPF application, how can I save a dynamically rendered page as a new XAML file? ...

Ajax Upload using valums ajax upload plugin inside a form.

Hi , i just came across this ajax upload plugin and i wish to use it inside a form as shown in the demo page example 3. For some reason i am not able to make it work. I am not sure what parameters come into the function. For example here is my sample code. $(document).ready(function(){ var upload = new AjaxUpload('property_i', ...

Is file encrption different from content encryption

Is there any difference between encrypting a file and encrypting the content of the file. If so, how to do the both. ...

Download file over HTTPS using .NET (part 2)

On a regular basis I have to do the following manually in a web browser: Go to an https website. Logon on a webform. Click a link to download a large file (135MB). I would like to automate this process using .NET. Some days ago I posted this question here. Thanks to a piece of code by Rubens Farias I am now able to perform the above...

How to check whether a file is open already in COBOL?

I am trying to find out a way to check whether a file is already opened in COBOL, so that I can open it if it is closed or close it if it is opened. Thnx. ...

Writing an integer to a file with fputs()

It's not possible to do something like fputs(4, fptOut); because fputs doesn't like integers. How can I work around this? Doing fputs("4", fptOut); is not an option because I'm working with a counter value. ...