Hi,
the background is a shell script to open the .m3u file of a web radio station. Therefore I want to know inside the script, what's the user's program to open such files. At the moment, he has to set the environment variable $PLAYER, but obviously that is not a good way to go.
Alternative: Is there a command that takes a filename and...
Is there a command which will print the path of the file in the repo-browser in the command line?
SVN diff only prints the file name.
Thank you.
...
Dupe of http://stackoverflow.com/questions/1048356/is-there-a-command-which-will-print-the-path-of-the-file-in-the-repo-browser-in-t
Is there a command which will print the path of the file in the repo-browser in the command line?
SVN diff only prints the file name.
Thank you.
...
I am using VSeWSS 1.3 to create a custom list definition scoped to 'Site'.
<Elements Id="8924acef-84ef-4584-ade4-e3eaeb8df345" xmlns="http://schemas.microsoft.com/sharepoint/">
<ListTemplate Name="MyListDefinition"
DisplayName="MyList"
Description=""
BaseType="0"
...
How do I get the file size and date stamp of a file on Windows in C++, given its path?
...
I need to create temporary files with PHP for my site. How can I have them numbered in the following manner:
tmp_file_01.jpg
tmp_file_02.jpg
tmp_file_XX.jpg
I'd like to avoid running the shell to figure out what the next available index is.
...
my problem is fprintf is only printing part of the expected output into the file.When i use printf the output is correctly printed on the output window, showing that the loop is correct but when i use it with fprintf the complete output is not printed.Only the initial part is printed.
PLease advise as to what might possibly be the pro...
Is there a way to search an entire computer for a String value representing a file name in Java? This would be without knowing the names of the drives on the computer.
...
Hello. I have created an example to introduce my question.
public class Algorithm
{
// This is the best, but circumstances prevent me from doing this.
/*public static void computeSomething(Data data)
{
// Compute some stuff
}*/
public static void computeSomething(DataFileReader reader) throws IOException
{...
I have to write huge data in text[csv] file. I used BufferedWriter to write the data and it took around 40 secs to write 174 mb of data. Is this the fastest speed java can offer?
bufferedWriter = new BufferedWriter ( new FileWriter ( "fileName.csv" ) );
Note: These 40 secs include the time of iterating and fetching the records from re...
Hi,
I want read property file in my java class.
for this i have written:
try {
Properties property = new Properties();
property .load(new FileInputStream("abc.properties"));
String string = property.getProperty("userName");
} catch (Exception e) {
e.printStackTrace();
}
...
Network file systems are offered by Windows and (L)Unix. Is there one for IBM Mainframes? (Hard to believe not). Does it offer standard Unix-style access (binary? Ascii? EBCDIC?)
to mainframe data areas? How are datasets/partitioned data sets treated?
Who configures into Z/OS? How do I find out more about such network file systems for...
I had this question... answered and very nice it was too. But, oddity has emerged whereby if the log file has a unique last line, (i.e. the first few words are different to the preceeding lines) it correctly returns that last line with tail -n 1 "file" but if the last few lines are similar to the the last line, it returns all the lines t...
How can one best test a controller action which receives a file upload using Zend_Test_PHPUnit_ControllerTestCase?
Ideally, $this->getRequest()->setPost() would take a filename in the data array, but this does not seem to be supported.
I would be willing at this stage to bootstrap/run my application on the command line and create a req...
I am using ASP.NET 2.0. I am trying to get the height & width of an image file I uploaded using the FileUpload control. Once uploaded, the image is kept in the db, not the file system. It seems I should be able to use something like the following code to do this but I can't get it to work.
Dim strm As Stream = oPostedFile.InputStream
d...
I need to run a script and have access to the default stdin (terminal input) in my program. I could do ./program "script", opening and parsing the script through the program, but I want to make it POSIX style, accepting input from pipes or from redirection.
I mean, since my program is a parser, I could run ./program, type the script and...
Hi,
I am being sent a Http POST request that includes a file. How can I get the file out of the HTTPWebRequest?
...
this code is correct??
String note = "text.txt";
FileWriter file = new FileWriter(note);
Scanner sc = new Scanner(System.in);
System.out.println("Enter your name:");
String name = sc.next();
file.close();
How can I pass this file to the program as a command line argument???
...
We need to create a file management interface that integrates with the clients current website built on cakephp.
The file manager must only let the users see the files that they have permissions too.
The user will be able to upload files(of any size) and have other users download those files (if permissions allow).
This is no problem ...
just think that when I opened my file then when I want to write something in it ,one Exception will be thrown,and if I used file.close() in the try block ,So because of that Exception will not work,
where should I close my file???
...