Welcome to Soft32 Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

How to read file line by line???

 
   Soft32 Home -> Mac -> Programmer Help RSS
Next:  Shared Memory Information  
Author Message
Kundan Nehete

External


Since: Jul 27, 2003
Posts: 8



(Msg. 1) Posted: Mon Nov 03, 2003 6:54 pm
Post subject: How to read file line by line???
Archived from groups: comp>sys>mac>programmer>help (more info?)

Hi All,
I want to read the file line by line.Is there any API like
getline..and also the function like strtok to be used for reading and
parsing each line containing Unicode data????
Back to top
Login to vote
Carl Barron

External


Since: Nov 03, 2003
Posts: 6



(Msg. 2) Posted: Tue Nov 04, 2003 11:27 pm
Post subject: Re: How to read file line by line??? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Kundan Nehete <kundank.RemoveThis@cybage.com> wrote:

> Hi All,
> I want to read the file line by line.Is there any API like
> getline..and also the function like strtok to be used for reading and
> parsing each line containing Unicode data????
For C99 there is fgetws() similiar to fgets() but reads into a wchar_t
*. Not sure of a wide C string functions. Quick look through wchar_t.h
and the C99 standard did not seem to find any..

For C++ std::getline(std::basic_istream<C,T> &,std::string<C,T,A> &, C
+); and wide streams.
Back to top
Login to vote
hemraj

External


Since: Nov 05, 2003
Posts: 1



(Msg. 3) Posted: Wed Nov 05, 2003 7:27 am
Post subject: Re: How to read file line by line??? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

cbarron3.DeleteThis@ix.netcom.com (Carl Barron) wrote in message news:<1g3xcjf.wv0fbwb5ovv1N%cbarron3@ix.netcom.com>...
> Kundan Nehete <kundank.DeleteThis@cybage.com> wrote:
>
> > Hi All,
> > I want to read the file line by line.Is there any API like
> > getline..and also the function like strtok to be used for reading and
> > parsing each line containing Unicode data????
> For C99 there is fgetws() similiar to fgets() but reads into a wchar_t
> *. Not sure of a wide C string functions. Quick look through wchar_t.h
> and the C99 standard did not seem to find any..
>
> For C++ std::getline(std::basic_istream<C,T> &,std::string<C,T,A> &, C
> +); and wide streams.

Hi kundan

This is for strtok ..
strtok or wcstok can be used alternatively by using unicode preprocessor.
but i am not sure about new development environment you are using....

Regards,
Hemraj Chaudhari.
Back to top
Login to vote
Simon Slavin

External


Since: Oct 10, 2003
Posts: 232



(Msg. 4) Posted: Thu Nov 06, 2003 5:28 pm
Post subject: Re: How to read file line by line??? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <a0598028.0311040054.4fdd6fc8.DeleteThis@posting.google.com>,
kundank.DeleteThis@cybage.com (Kundan Nehete) wrote:

> I want to read the file line by line.Is there any API like
>getline..and also the function like strtok to be used for reading and
>parsing each line containing Unicode data????

What are you developing for ? OS 9 ? Carbon ? Cocoa ?
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Cocoa Networking - Empty Data from Async FileHande Read - I am _eventually_ writing an IRC obj-c/cocoa class that will make an IRC connection and take care of housekeeping sort ...

[Q] a nib file can't be loaded? - Hello. I have some problem with the example code of the book, "Building Cocoa Applications", O'Reilly. In t...

File creating problem - Hello, I'm trying to test if a file exists and if not I try to create it in order to open it for writing. So I first u...

Why can the Finder copy a file that is in use? - I was just reading about file permissions on Apple's web site. It said: fsRdWrPerm Requests exclusive read and write...

Creating a file with FSpCreate - This is probably a very stupid question, but I can't seem to get this to work. I had a very strong background programm...

*Very* strange file behavior... - I'm trying to create a file in /Library/Preferences. This code was working fine until today, when it just doesn't work...
       Soft32 Home -> Mac -> Programmer Help All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum

Categories:
 Windows
 Linux
  Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]