Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / fill an array with external file

Author
Message
nobru
20
Years of Service
User Offline
Joined: 7th Jan 2005
Location:
Posted: 7th Jan 2005 22:07
First: Happy new year!
and excuse me for my bad english.
Now i try to explain my problem:
I'd like to fill a single array of integers with each line of a text file (lines of strings !).I have tried with a binary file contening lines of integers, but my code does not work! So if you had time to show me a simple exemple or piece of code...
Thank you.
Kohaku
21
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 8th Jan 2005 02:56 Edited at: 8th Jan 2005 02:59
like this?



Wait, I don't think this is what you meant.

You are not alone.
BigDan256
21
Years of Service
User Offline
Joined: 29th Oct 2003
Location: NSW, Australia
Posted: 8th Jan 2005 21:00 Edited at: 8th Jan 2005 21:03
Is this the kind of thing you are trying to do?



or this:

nobru
20
Years of Service
User Offline
Joined: 7th Jan 2005
Location:
Posted: 10th Jan 2005 14:35
Thank you Aura & Bigdan256 for your answers.
I can't test the code now ,i'm not on my pc, but i think that the first code snippet from Bigdan256 is exactly what i need !

Login to post a reply

Server time is: 2025-05-24 16:55:13
Your offset time is: 2025-05-24 16:55:13