Results 1 to 9 of 9

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User bombov's Avatar
    Join Date: Jan:2007
    Location:
    Posts: 260

    Input./Output -

    Write a program that splits given file into parts (1.44MB for example). The output files should be automatically numbered
    , .

  2. #2
    XaMaB's Avatar
    Join Date: Nov:2001
    Location:
    Posts: 20,387
    Quote Originally Posted by bombov View Post
    , .

    (1.44MB for example)
    : XaMaB; . 0.42

    In God we Trust (all others must submit a X.509 certificate). , ()

  3. #3
    Registered User
    Join Date: Dec:2008
    Location: Karlsruhe
    Posts: 13
    Quote Originally Posted by bombov View Post
    , .
    Huffman.

  4. #4
    philosophus duratea icaci's Avatar
    Join Date: Oct:2006
    Location: Aachen
    Posts: 2,698
    ?
    Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others

  5. #5
    Registered User bombov's Avatar
    Join Date: Jan:2007
    Location:
    Posts: 260
    .

    1.44 , .

  6. #6
    philosophus duratea icaci's Avatar
    Join Date: Oct:2006
    Location: Aachen
    Posts: 2,698
    Code:
     _ == _ 
      __()
      __()
      _ = 0
     
    Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others

  7. #7
    Registered User bombov's Avatar
    Join Date: Jan:2007
    Location:
    Posts: 260
    :

    Code:
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import java.io.IOException;
    
    
    public class Problem5 {
    
    	/**
    	 * @param args
    	 */
    	public static void main(String[] args)throws FileNotFoundException {
    		// TODO Auto-generated method stub
    
    		FileInputStream fileinput = null;
    		FileOutputStream fileoutput = null;
    		int counter=0;
    		
    		try {
    			
    			fileinput = new FileInputStream("WindowsUpdate.log");
    			fileoutput = new FileOutputStream("resultat"+counter+".txt");
    			int text;
    
    
    			while((text=fileinput.read()) != - 1) {
    
    //  ,      .
    //     ,            - 1.44 MB ,       .
    _ == _ __() __() _ = 0
    } } catch(IOException e) { System.out.println(e.getMessage()); } finally { if(fileinput != null && fileoutput != null) { try { fileinput.close(); } catch (IOException e) { e.printStackTrace(); } } } } }
    , @icaci .
    , - 1.44 MB , .

  8. #8
    Registered User bombov's Avatar
    Join Date: Jan:2007
    Location:
    Posts: 260
    - , , () , .

  9. #9

    Join Date: Sep:2005
    Location: Sofia
    Posts: 18,517
    1.44 int read(byte[], int, int), . . , - - . , 5 . .

Posting Permissions

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

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |