Switch to full style
Java Technology Tutorials Written By Members.
Post a reply

Read Arabic text from file

Tue Aug 21, 2012 11:32 pm

Read Arabic text from file :
Code:
public class ReadArabic {

    public static 
void main(String[] argsthrows FileNotFoundException {
        
Scanner scanner = new Scanner(new FileInputStream("D:\\Test2.txt"), "ISO-8859-6");
        try {
            while (
scanner.hasNextLine()) {
                
System.out.println(scanner.nextLine());
            }
        } 
finally {
            
scanner.close();
        }
    }
}

 




Post a reply
  Related Posts  to : Read Arabic text from file
 How to read string text in files     -  
 Read csv file     -  
 read from file in C++     -  
 File write read     -  
 Read and write CSV file     -  
 Read and Write to file using ASP     -  
 Read Binary File in C++     -  
 javascript read file     -  
 read file in matlab     -  
 File read by char     -  

Topic Tags

Java Files and I/O