Raised This Month: $ Target: $400
 0% 

[Resolved] Parsing each line read file?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 11-30-2006 , 15:48   [Resolved] Parsing each line read file?
Reply With Quote #1

Hi I am trying to read each line of my file, then put each separate line into a slot in an array.

Here is the code I am trying to use...
Code:
        new readdata[128];         new parsedline;         new newOrigin[6];                 new i = 0;         while(fgets(filepointer,readdata,127))         {             parse(readdata, parsedline, 31);             newOrigin[i] = parsedline;             i ++;         }

The file contains 6 lines. I want each line into the newOrigin array. How do I do this?

Last edited by hlstriker; 12-01-2006 at 23:31. Reason: Resolved
hlstriker is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:56.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode