this should do what you are wanting:
String fileLocation; // the folder the file is located
String file; ...
Type: Posts; User: straw
this should do what you are wanting:
String fileLocation; // the folder the file is located
String file; ...
right i figure it out i was doing it right all along! :P
String[] commands = {"cmd", "any cmd command here", "you can do a series of commands", "eg cd C:/Users/Ollie/Documents"};...
yess thats what im tryind to do! open up a cmd window the write some texts to it to before a task.
i tried searching google but i still dont really know what im looking for, it just comes up with...
Hi,
i have opened up using
String[] commands = {"cmd", "/c", fileLocation};
Runtime.getRuntime().exec(commands);
and now i need to write a couple of lines to the application. Please...
i've just seen this: FileZilla - The free FTP solution what that be a good substitute if i don't upgrade with webs?
how easy will it be to write a java program to read/write files to it?
thanks...
yer i guess i was a bit naive thinking that! :/
you see its not just me who will be using this so need something on the web!
yess webs does have an ftp interface but you need a premium account for...
i haven't a clue tbh! i dont really know what im doing here, all i know is what i want to happen and that google hasnt helped me! also i dont know how much control i have over the server because its...
Okay i have this website, (Project Quattro - Home), and i have uploaded a file to it (http://www.projectquattro.webs.com/java/javaarray.txt). i have entered some text into it and i can read that text...
Happy birthday guys! thanks for all your help!! :D
Hi all,
didnt know where this goes so i'll try here!
i need to add a load of integers into a string but not adding the up,
e.g Integers 1, 8, 3, 0, 2, 4, 6 becomes String 1830246
if it...
haha its ok just glad i have this it looks alot easier than what i have been doing!! XD
yer thats what i have been doing for the BufferedReader aswell but thanks for the heads up!
Thanks...
hi thanks for the response, i tried using the reader.hasNext() but it just comes up with this error:
i have imported:
import java.io.*;
import java.io.BufferedReader;
import...
Hi i have this code that reads a this txt file below.
My code:
try {
BufferedReader in = new BufferedReader(new FileReader("file.txt"));
String str;
while ((str =...
oh ok thanks, i just got the impression it was set but hey i'll take another look!
thanks again for th help!! =]
yer i have done that but process is still underlined. the help box comes up with:
hi again, i have found this code online and when i use it says next to process: "cannot find symbol"
do i need to import anything to make it work?
try {
BufferedReader in = new...
hi thanks for the quick responce, now re the case1 error that was me just being tired and typing it out wrong i didnt do that in my actual project!
when i do as you say above it just comes up...
hi so fare i have this but it doesnt seem to be working:
in one class i have:
public class siwtchMenu{
public String[][] arrayA(int x, int y){
String arrayTest[][] = {{"0", "1",...