Professional Web Applications Themes

How to read file line by line??? - Mac Programming

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????...

  1. #1

    Default How to read file line by line???

    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????
    Kundan Guest

  2. #2

    Default Re: How to read file line by line???

    Kundan Nehete <com> wrote:
     
    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.
    Carl Guest

  3. #3

    Default Re: How to read file line by line???

    netcom.com (Carl Barron) wrote in message news:<1g3xcjf.wv0fbwb5ovv1N%netcom.com>... 
    > 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.[/ref]

    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.
    hemraj Guest

  4. #4

    Default Re: How to read file line by line???

    In article <google.com>,
    com (Kundan Nehete) wrote:
     

    What are you developing for ? OS 9 ? Carbon ? Cocoa ?


    Simon Guest

Similar Threads

  1. How to read a pdf file line by line through IAC
    By rkumaravel@adobeforums.com in forum Adobe Acrobat SDK
    Replies: 6
    Last Post: August 1st, 11:26 AM
  2. Read a Textfile line by line
    By Muskelkatermann in forum Coldfusion - Getting Started
    Replies: 2
    Last Post: December 11th, 04:50 PM
  3. Read file knowing PRECISE end of each line
    By Alberto in forum PHP Development
    Replies: 4
    Last Post: May 20th, 12:40 AM
  4. Write and read to serial Line (ttyS0)
    By Volker Petzold in forum PERL Modules
    Replies: 2
    Last Post: November 9th, 10:25 AM
  5. Read Address line
    By Rick Morayniss in forum ASP
    Replies: 2
    Last Post: August 22nd, 09:29 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139