I have a txt file with below data
aaaa 1000 2000
bbb 3000 4000
cccc 5000
ddd 6000 7000 8000
The numbers of rows in this file are not fixed.
I need the first token of each row within an array and to print each element.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To create the array:
To print array elements:
If you want to pass the array name and lenght as subroutine parameters, then use this way: