Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 06-15-2004, 09:14 AM   #1 (permalink)
rainyday
Registered User
 
Join Date: Jun 2004
Posts: 1
rainyday is on a distinguished road
end of line function

i have two files and as i am working with my first file... i want to "cout" a message everytime i reach the first file's end of line.... how exactly do i do that?

i heard of eol.... but it doesn't work...

an example would work....
rainyday is offline   Reply With Quote
Old 06-16-2004, 12:33 AM   #2 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,726
redhead is on a distinguished road
What type of contence is there in the file? is it a text file or a binary?
Usualy you would use getline() but if it's binary, then you can't be sure the delimiter getline() is looking for is exactly the end of line in the file.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Old 06-20-2004, 11:05 PM   #3 (permalink)
Mr.Anderson
Registered User
 
Mr.Anderson's Avatar
 
Join Date: Mar 2003
Location: In a van, down by the river.
Posts: 24
Mr.Anderson is on a distinguished road
Send a message via AIM to Mr.Anderson Send a message via Yahoo to Mr.Anderson
Post Sorry, I have a silly question...

Am I mistaken in thinking you're dealing with two files?
What's the second one? (Not that it matters.)

Does this file have an incredibly long line length?
Can you just use getline?

If possible, an example of the first text file might help.
Mr.Anderson is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
writting progress to cl on one line sde Linux / BSD / OS X 4 11-08-2004 02:15 PM
cgi script Henry PHP 25 12-30-2002 07:54 AM


All times are GMT -8. The time now is 08:03 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting