Tuesday, June 10, 2008

I want to use this command to open a txt file I choose using java
Runtime load = Runtime.getRuntime();
load.exec(C:\\WINDOWS\\system32\\wordpad.exe D:\\Documents and Settings\\Report.txt

Word pad starts but it cant find the txt file..it seems to be having problems with the spaces between Documents and Settings. I have tried:
Documents%20and%20Settings
Documents""and"" Settings

and a few other things...Can anyone give me an example of a string that will work? Thanks for any help.
How to use Java to open Notepad or WordPad?
Here is my code:
Runtime.getRuntime().exec("C:/Program Files/Windows NT/Accessories/wordpad.exe D:/Ryan Sub/statements/simple statements/AbdominalTendernessAssert.xml");

ok i use a palm centro and since they removed java i found the last java they had before they removed it- but when i try to install it says "Enter the URL of the midlet that you would like to install" meaning?

programming in C for first time- already experienced in java. Want to search a char string for a certain character so using

input.charAt[i] in a for loop.

how to do this in C?

1.Count the number of characters in a string without using any inbuilt functions in java

Another quick question about primitive types

int foo = 5

Is the value 5 stored in foo- or is the address of 5 stored in foo? I get confused about the difference between what is stored in primitives and what is stored in objects.

No comments: