My favorites
▼
|
Sign in
lineadecodigo
Web Code Samples in spanish
Project Home
Downloads
Wiki
Issues
Source
Checkout
Browse
Changes
Source path:
svn
/
trunk
/
lineadecodigo_java
/
src
/
com
/
lineadecodigo
/
java
/
file
/
encoding
/
LeerFicheroISO1.java
r478
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package com.lineadecodigo.java.file.encoding;
/**
* @file LeerFicheroISO1.java
* @version 1.0
* @author Linea de Codigo (http://lineadecodigo.com)
* @date 14/septiembre/2011
* @url http://lineadecodigo.com/java/leer-fichero-iso-latin-1/
* @description Programa que lee un fichero con encoding ISO 8859-1, Latin Alphabet No. 1
*/
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
public class LeerFicheroISO1 {
public static void main(String[] args) {
try {
BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream("FicheroISO1.txt"), "8859_1"));
String sCadena;
while ((sCadena = in.readLine())!=null) {
System.out.println(sCadena);
}
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}
}
Show details
Hide details
Change log
r387
by vcuervo on Sep 14, 2011
Diff
Leer fichero ISO Latin 1
Go to:
...lineadecodigo/java/file/encoding
...le/encoding/LeerFicheroISO1.java
Project members,
sign in
to write a code review
Older revisions
All revisions of this file
File info
Size: 1024 bytes, 41 lines
View raw file
Powered by
Google Project Hosting