Search:

Type: Posts; User: straw

Search: Search took 0.42 seconds.

  1. Thread: compiling a file

    by straw
    Replies
    4
    Views
    1,580

    Re: compiling a file

    this should do what you are wanting:



    String fileLocation; // the folder the file is located
    String file; ...
  2. Replies
    4
    Views
    1,719

    [SOLVED] Re: How to write to an application

    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"};...
  3. Replies
    4
    Views
    1,719

    [SOLVED] Re: How to write to an application

    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...
  4. Replies
    4
    Views
    1,719

    [SOLVED] How to write to an application

    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...
  5. Replies
    10
    Views
    4,213

    Re: Help writing to a text file on a website!

    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...
  6. Replies
    10
    Views
    4,213

    Re: Help writing to a text file on a website!

    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...
  7. Replies
    10
    Views
    4,213

    Re: Help writing to a text file on a website!

    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...
  8. Replies
    10
    Views
    4,213

    Help writing to a text file on a website!

    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...
  9. Replies
    55
    Views
    9,236

    Re: HAPPY 2nd BIRTHDAY JAVA PROGRAMMING FORUMS!!!

    Happy birthday guys! thanks for all your help!! :D
  10. Replies
    1
    Views
    2,304

    adding multiple ints into a string

    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...
  11. Replies
    4
    Views
    5,344

    [SOLVED] Re: reading only certain lines from a .txt file

    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...
  12. Replies
    4
    Views
    5,344

    [SOLVED] Re: reading only certain lines from a .txt file

    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...
  13. Replies
    4
    Views
    5,344

    [SOLVED] reading only certain lines from a .txt file

    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 =...
  14. Replies
    4
    Views
    1,691

    [SOLVED] Re: Do i need to import anything here?

    oh ok thanks, i just got the impression it was set but hey i'll take another look!
    thanks again for th help!! =]
  15. Replies
    4
    Views
    1,691

    [SOLVED] Re: Do i need to import anything here?

    yer i have done that but process is still underlined. the help box comes up with:
  16. Replies
    4
    Views
    1,691

    [SOLVED] Do i need to import anything here?

    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...
  17. Replies
    3
    Views
    9,174

    Re: returning a 2D array

    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...
  18. Replies
    3
    Views
    9,174

    returning a 2D array

    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",...
Results 1 to 18 of 20