+ Reply to Thread
Results 1 to 3 of 3

Thread: Creating a huge file filled with numbers.

  1. #1
    Paradox is offline Newbie
    Join Date
    Jul 2008
    Posts
    17
    Rep Power
    16

    Creating a huge file filled with numbers.

    So this basicly make a text file called numbers with 99999999 numbers in it.

    Code:
    import java.io.*;
    
    public class GenNumbers {
    	
    /*
     * Prints out 99999999 numbers in to a file.
     * Created by: Joey
     * July 16, 2008
     */
    	public static void main(String[] args) throws IOException{
    		FileWriter file = new FileWriter("numbers.txt", false);
    		PrintWriter output = new PrintWriter(file);
    		int x = 1;
    		while (x < 10){
    			output.println(+ x);
    			x = x + 1;
    		}
    		output.close();
    	}
    }

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Jul 2006
    Location
    Amherst, New York, United States
    Posts
    6,277
    Blog Entries
    26
    Rep Power
    20

    Re: Creating a huge file filled with numbers.

    I'm can't think of a use for this. Interesting to know though.

  4. #3
    Paradox is offline Newbie
    Join Date
    Jul 2008
    Posts
    17
    Rep Power
    16

    Re: Creating a huge file filled with numbers.

    I use it to recored all the ips possiable but this verison can't.

    ~Paradox

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Load numbers from a .txt file?
    By thizzladen in forum PHP Development
    Replies: 6
    Last Post: 05-27-2011, 05:12 PM
  2. Replies: 20
    Last Post: 01-30-2011, 11:40 PM
  3. Intermediate Addition with extremely huge numbers in C++
    By Csabi in forum C Tutorials
    Replies: 0
    Last Post: 01-30-2011, 02:21 AM
  4. Working with huge numbers
    By Chinmoy in forum Java Tutorials
    Replies: 0
    Last Post: 06-11-2008, 05:52 AM
  5. Huge Small File
    By John in forum General Programming
    Replies: 4
    Last Post: 03-27-2008, 11:14 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts