file

Split/break a File in to pieces in J2ME

Hi, I need to split an audio or large image file in J2ME before uploading it. How can i split/ break a file in to pieces in JavaME. Regards, Imran ...

how to search a text file in j2me(new and very difficult)

hello friends, i hav a text file in which it is written as :res.txt red:redtu_hotel\address red:redu_hospital\add_hosp blue:bluert_hotel\address1 blue:blue1tr_hotel\address2 blue:blueer_hospital\add_newhosp there are 2 forms and on the first form,its a text box,a choiceGroup and another choiceGroup1,choicebox2 and again textbox2...

file sharing on iphone/ipad?

Hi guys I want my app to share files via itunes file sharing. Right now all of the Documents folder is exposed to the user. The problem is that there are certain files there (let's say these are "System files") that I don't want to expose. What should I do? And if it's not possible to "hide" files, where do you think it's best to put "...

PHP LOAD ARRAY VARIABLE FROM FILE

i have the following code: which uses an array to write the result to file i want to create another array to read the celebities aray from another file <?php require("class.XMLHttpRequest.php"); function hot($news){ $url="https://localhost/search.aspx?search=".$news.""; $ajax=new XMLHttpRequest(); $ajax->setRequestHeader("Cookie"...

Is it possible to query TFS system for any work items that contain an attachment ends with .sql?

For every release we would like to round up all the work items that contain a .sql attachments to run on our staging server. Is there a way to query TFS? Or is this something that has to be done directly to the TFS server database? Any suggestions? We're using Team Foundation Server 2010 RTM. ...

What happens in NFS if 2 or more servers try to write the same file simultaneously?

I'm working on a PHP webapp that does automatic resizing of images and I'm thinking of storing the cached copies on the NFS mounted NAS so it's easy for me to flush the cache when images are updated. The only thing I'm worried about is what happens in general with NFS if 2 or more of the servers in the cluster are trying to create the s...

Wrong Behavior of Relative Paths in XCode Project When Adding New Files

First of all, I am far from an XCode guru and pretty much a newbie with it. The simplest thing have been bugging our team for quite sometime: Whenever I had a new file to the project and select "Relative to Project" or "Relative to Enclosing Group" I will always get a semi-relative path. I get something in the line of: ../../../../../T...

How do I .gitignore and delete an already commited file without affecting other working copies?

I have a bare repository and two working copies - one on my machine, the other on the server. It turned out that I have to .gitignore a certain file that has to be specific for every machine. Let's call it 'settings.py'. This file is already commited. I did put 'settings.py' in .gitignore to ignore it. When I now change the file on my m...

A-sync Speed over Gigabit LAN Ethernet File Transfer

I have a strange problem with transferring files between 2 computers connected to each other through an ethernet cable. Both PCs have on-board gigabit ethernet ports. Aside from the different hardwares, the softwares (especially network settings) are configured almost the same, with Windows 7 x64 etc. Tests have been taken with and witho...

Does MATLAB lock files when it opens them (Linux)?

I'm collecting data and would like to plot the results in Matlab as they're being collected. However it seems like the file would be locked while my scripts are running. Does anyone know if the Linux version of Matlab acts differently when it opens files, and leaves them writeable by other processes? ...

Simple File Upload, Facing Problem With Writing File (Also Weird $_FILES problem)

The file I'm uploading is either not getting written into the temporary folder or is it not getting processed by PHP properly.... Enctype - Check Name, Method - Check Form (syntax) - Check (Take it from me that the data is being passed by the form to the PHP) The PHP code - 0) { echo "Return Code: " . $_FILES["file"]["error"] ....

Creating excel file with java (invalid file format)

I manage to create Excel 97-2003 file with Java, but when I try to open it with Windows Explorer, I get the error message file format is not valid. The filename is file.xls so it should be right? What goes wrong then? ...

Open a local file from local html+js page

Is it possible to show a dialog box to let the user select a file on the local drive and then read its content from a local html page using js? Is it possible to save a file to a user chosen path? I'm planning to write a simple script to open file and encode its content inside images (not steganography, just the file's raw bytes). Tha...

How can i check if a path points to a folder or a file?

I'm building a small class for my zend application (using MVC). This class receive either a folder path or a file path. If its a folder path, i want to list all the files in that folder to make them downloadable. If its a file i want to make a single link to this file to make it downloadable. The file/folder i'm pointing to is /zendAppl...

How can I Scan file to search for value

I need to scan an input file and search for a specific value. How do I do that? ...

How to read text file from relative path in a project ?

i have project with 2 package - tkorg.idrs.core.searchengines (1) - tkorg.idrs.core.searchengines (2) In packge (2) i have text file ListStopWords.txt, in packge (1) i have class FileLoadder Here is code in FileLoadder: File file = new File("properties\files\ListStopWords.txt"); But have error :The system cannot find the path specifi...

How do I check if a directory is a file or folder?

Okay, so I'm using mingW, and the direct struct has no variables named d_type or stat, d_stat, or dd_stat. I need to know how I can use my direct struct to figure out if what I have is a file or folder. Here is my code. #include <sys/types.h> #include <sys/stat.h> #include <dirent.h> #include <errno.h> #include <vector> #include <string...

Why is git adding my directories as though they were files?

It might be a lack of coffee, but I've just had some, so I'll go ahead and ask anyway. Here's a literal talk that I had with my terminal, with line breaks for readability. $ ls -la total 28 drwxr-xr-x 5 thomas thomas 4096 2010-10-02 09:32 . drwxr-xr-x 153 thomas thomas 12288 2010-10-02 09:30 .. drwxr-xr-x 5 thomas thomas 4096 201...

Can't get ListView items to show up in android program!

I have a listview that I would like to use to display a list of strings. The problem is the items don't show up. Can anyone tell me what I am doing wrong? Here's my code: import java.io.File; import java.io.FileFilter; import java.util.ArrayList; import android.app.Activity; import android.os.Bundle; import android.os.Environment; imp...

Trying to get each line of a text file to be an arraylist

alright so I am trying to read a text file. and then split it up into lines which actually represent processes in a process table arraylist. then i want to split up all the tokens in the line and make all the tokens of the line an arraylist again so far this is all i have: its not working correctly. i am getting: processes:[[netscape,...