Thread: 1024bit RSA Generator

Page 3 of 3 FirstFirst 123
Results 21 to 24 of 24
  1. #21  


    Major's Avatar
    Join Date
    Jan 2011
    Posts
    2,997
    Thanks given
    1,293
    Thanks received
    3,556
    Rep Power
    5000
    Quote Originally Posted by Cartilage View Post
    Ok I can sense your intentional sarcasm but can you please explain me how it's supposed to take a long time to learn to use the java.nio.file API?
    Okay yes I understand it can take several minutes or even hours but I don't get how your post is relevant to that.
    he said he's planning on learning about it, how about u shut up instead of continuing to pointlessly deride him
    Reply With Quote  
     

  2. Thankful user:

    Ray

  3. #22  
    Member
    Join Date
    Apr 2015
    Posts
    212
    Thanks given
    6
    Thanks received
    58
    Rep Power
    0
    Quote Originally Posted by Cartilage View Post
    I'm sorry, but doesn't that take only a few minutes to learn?

    java.nio.file (Java Platform SE 7 )

    Here's a little example

    Code:
    	 /**
    	  * In the NIO file system, the {@code java.nio.file.Path} interface is used instead of {@code java.lang.String}
    	  * Also, {@link java.nio.file.Paths#get} is used to return a path
    	  */
    
    	 Path filePath = Paths.get("./data/path/to/your/file.txt");
    
    	 /**
    	  * {@link Files#newBufferedReader(java.nio.file.Path)} returns a {@code BufferedReader}
    	  * Please see <a rel="nofollow" href= "http://docs.oracle.com/javase/7/docs/api/java/nio/file/Files.html">java.nio.file.Files</a>
    	  */
    	 
    	 try (BufferedReader reader = Files.newBufferedReader(filePath)) {
    		 reader.lines().forEach(System.out::println);
    	 } catch (IOException io) {
    		 io.printStackTrace();
    	 }
    It doesn't. It should be different for every file extension.
    Reply With Quote  
     

  4. #23  
    Aspiring Physicist


    Join Date
    Feb 2014
    Age
    23
    Posts
    500
    Thanks given
    378
    Thanks received
    359
    Rep Power
    5000
    Quote Originally Posted by S Quare Quxx View Post
    clearly wasnt enough for u Files (Java Platform SE 7 )
    Yeah, I was showing him how to create a BufferedReader using Files#newBufferedReader. I know I can just do

    Code:
    Files.readAllLines(filePath, Charset.forName("UTF-8")).forEach(System.out::println);
    which would even be easier but wouldn't involve using a BufferedReader.

    Quote Originally Posted by Major View Post
    he said he's planning on learning about it, how about u shut up instead of continuing to pointlessly deride him
    umm.. right you are, I maybe was out of my mind when I said that sorry.
    I think I should shut the fk up.
    R.I.P.
    Alex "Impulser" Camilleri
    1993-2015
    [Aged : 21]
    Reply With Quote  
     

  5. #24  
    Programmer, Contributor, RM and Veteran




    Join Date
    Mar 2007
    Posts
    5,147
    Thanks given
    2,656
    Thanks received
    3,731
    Rep Power
    5000
    Quote Originally Posted by Cartilage View Post
    Code:
    Files.readAllLines(filePath, Charset.forName("UTF-8")).forEach(System.out::println);
    Nicer to use StandardCharsets.UTF_8 instead.
    .
    Reply With Quote  
     

  6. Thankful users:


Page 3 of 3 FirstFirst 123

Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. RSA generate?
    By RuiN in forum Help
    Replies: 1
    Last Post: 10-17-2013, 09:03 PM
  2. RSA Key Generation and Decryption for Private Servers
    By blakeman8192 in forum Snippets
    Replies: 16
    Last Post: 01-01-2010, 11:55 AM
  3. Autospawn Generator - Pics.
    By Soulzz in forum Tools
    Replies: 9
    Last Post: 02-10-2008, 05:13 AM
  4. Missilainia - A new generation....
    By MR. Real in forum RS2 Server
    Replies: 17
    Last Post: 11-01-2007, 02:57 PM
  5. Third-Generation Side-Icons
    By Gliomaru in forum Downloads
    Replies: 47
    Last Post: 08-19-2007, 05:35 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •