2 registered members (Akow, tomaslolo),
1,536
guests, and 12
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Read a text file line by line
[Re: Stromausfall]
#342606
09/29/10 16:24
09/29/10 16:24
|
Joined: Jun 2006
Posts: 2,640 Earth
Germanunkol
Expert
|
Expert
Joined: Jun 2006
Posts: 2,640
Earth
|
Why not use txt_load(TEXT*,STRING* filename) and then iterate through the strings and fill thim into one string?
~"I never let school interfere with my education"~ -Mark Twain
|
|
|
Re: Read a text file line by line
[Re: Razoron]
#342630
09/29/10 18:25
09/29/10 18:25
|
Joined: Apr 2007
Posts: 3,751 Canada
WretchedSid
Expert
|
Expert
Joined: Apr 2007
Posts: 3,751
Canada
|
Write a DLL and use getline(). And I thought Lite Foundation would be the overkill, but your solution beats everything oO
Shitlord by trade and passion. Graphics programmer at Laminar Research. I write blog posts at feresignum.com
|
|
|
Re: Read a text file line by line
[Re: Razoron]
#342633
09/29/10 18:39
09/29/10 18:39
|
Joined: Apr 2007
Posts: 3,751 Canada
WretchedSid
Expert
|
Expert
Joined: Apr 2007
Posts: 3,751
Canada
|
No, the shortest and easiest way to achieve your target wins. You solution is neither short nor easy.
Shitlord by trade and passion. Graphics programmer at Laminar Research. I write blog posts at feresignum.com
|
|
|
Re: Read a text file line by line
[Re: Razoron]
#342636
09/29/10 19:14
09/29/10 19:14
|
Joined: Apr 2007
Posts: 3,751 Canada
WretchedSid
Expert
|
Expert
Joined: Apr 2007
Posts: 3,751
Canada
|
No, it doesn't. Mapping the DLL into the memory, calling the function etc. will cost much more than reading those few lines directly through Gamestudio.
Shitlord by trade and passion. Graphics programmer at Laminar Research. I write blog posts at feresignum.com
|
|
|
|