[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [PROGRAMMERING] Kommando i Java virker ikke?



On Tue, Feb 08, 2005 at 02:38:31PM +0100, Anders Misfeldt wrote:
> try {
> 	BufferedReader targetFile = new BufferedReader(new 
> FileReader("stations.txt"));
> 	String targetString = "";
> 	while((targetString= targetFile.readLine()) != null){		
> 	System.out.println(targetString);
> }
> }
> catch (FileNotFoundException p) {
> } 	
> catch (UnsupportedEncodingException p) {
> }
> catch (IOException p) {
> }
> 
> Hvordan kan man gemme hver linie fra filen i fx. et array (object-array?)?

Lav en vector du kan gemme i:

Vector v = new Vector();

v.addElement(din streng);


saadan ca.

Rasmus


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 22:44 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *