Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 17:58

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Frage]File Lines in Array?

Discussion on [Frage]File Lines in Array? within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
BlackHybrid's Avatar
 
elite*gold: 52
The Black Market: 101/0/0
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
[Frage]File Lines in Array?

Hey Com ich hab mal ne Frage undzwar wie ich die Lines aus einer File auslesen und den Inhalt sowie die Anzahl in ein Array schreiben kann.

Hab leider noch nicht allzuviel mit Arrays gearbeitet.

MfG,
BlackHybrid
BlackHybrid is offline  
Old 02/03/2011, 20:35   #2
 
elite*gold: 0
Join Date: Mar 2009
Posts: 7,260
Received Thanks: 33,147
_FileReadToArray()
KDeluxe is offline  
Thanks
1 User
Old 02/03/2011, 20:45   #3
 
BlackHybrid's Avatar
 
elite*gold: 52
The Black Market: 101/0/0
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
Aber des liest doch nicht die einzelnen zeilen zu einem Array und wenn doch kannst da vllt mal ein Beispiel gemacht werden?
BlackHybrid is offline  
Old 02/03/2011, 20:50   #4
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,254
bsp aus der hilfe

PHP Code:
#include <file.au3>
Dim $aRecords
If Not _FileReadToArray("error.log",$aRecordsThen
   MsgBox
(4096,"Error"" Error reading log to Array     error:" & @error)
   Exit
EndIf
For 
$x 1 to $aRecords[0]
    
Msgbox(0,'Record:' $x$aRecords[$x])
Next 
omer36 is offline  
Thanks
1 User
Old 02/03/2011, 20:56   #5
 
BlackHybrid's Avatar
 
elite*gold: 52
The Black Market: 101/0/0
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
Oh hab fehler eingebaut sorry
THX an euch beide.
BlackHybrid is offline  
Reply


Similar Threads Similar Threads
java - switch -> case frage [array]
12/29/2010 - General Coding - 6 Replies
hey hey... hab ein kleines problem, mit der switch - case abfrage mit nutzen von arrays... switch (zuf){ case wetten:uebereinstimmungen = 1;break; } zeigt der mir nen fehler an , mit ner einfachen if-abfrage klappt es zwar, aber sieht mit switch-case sauberer aus, da es mehrere sind...
Game Lines
11/14/2010 - Say Hello - 2 Replies
ICH GRÜßE EUCH!
Add more lines to Npc
06/29/2010 - EO PServer Hosting - 4 Replies
hello everyone i was wonddering how to add more maps to teleporters so people can go to them i would thank u so much if u could help me
stupid lines
11/14/2006 - Conquer Online 2 - 1 Replies
if some 1 has a fix for this please save me there driving me crazey thort new interface would fix but still there i got them after 1st ever reinstalling CO with my Gforce 7800 GS and thay been there ever sins.



All times are GMT +2. The time now is 17:58.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.