Go Back   FlashFXP Forums > >

Programming Need help with C/C++/Delphi? Ask here and make us all laugh.

Closed Thread
 
Thread Tools Rate Thread Display Modes
Old 08-30-2003, 02:10 AM   #1
w3rd
Junior Member
 
Join Date: Aug 2003
Posts: 12
Question parse file q

hey,

i'm trying to parse a file in c++ using strtok() but for some reason i end up with more then just one line in the read buffer...

(i'm using fopen to open the file and fgets to read the buffer)

i tried parsing out the '\n' '\r' and '\0' but still having problems with unnecessary lines in the result.. i need to seperate each line read from the file in some way. another problem i'm having is that if i do this, and there is no \n char at the end (no new line was added, or enter wasnt hit) i get stuck with it saying there are no lines in the file :/ any suggestions?



thanks in advance, w3rd
w3rd is offline  
Closed Thread

Tags
end, file, line, parse, read


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
How To Search For Files On A Remote Server chrome307 General Discussion 2 01-02-2005 12:06 PM
site change ratio suggestion Lunatik Suggestions 3 02-13-2003 09:14 PM


All times are GMT -5. The time now is 11:21 AM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)