Thread: Writing in to flat file using SDK programming

  1. #1
    Registered User
    Join Date
    May 2002
    Posts
    21

    Writing in to flat file using SDK programming

    I am fundoo windows CE programmer.

    I am actually trying to create a file and write into it .

    If I 've used MFC, then I can use CFile Class and creating object to it and happily use serialize to write into it.

    My task is I've will be getting data from serial port. That data should be continually be displayed on the window besides it needs to be stored in a flat file. I 've acheived displaying data on the window using SDK programming, but unable to write the data into the file. I would like to know if there are anybody who worked on this concept.

    vamshi

  2. #2
    Me want cookie! Monster's Avatar
    Join Date
    Dec 2001
    Posts
    680
    You can use the standard C functions:
    fopen
    fprintf (text)
    fwrite (binary)
    fclose

  3. #3
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    or the WIN32 CE

    CreateFile()
    WriteFile()
    ReadFile()
    CloseHandle()

    ect

    even CeWriteFile()
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. opening empty file causes access violation
    By trevordunstan in forum C Programming
    Replies: 10
    Last Post: 10-21-2008, 11:19 PM
  2. gcc link external library
    By spank in forum C Programming
    Replies: 6
    Last Post: 08-08-2007, 03:44 PM
  3. Game Pointer Trouble?
    By Drahcir in forum C Programming
    Replies: 8
    Last Post: 02-04-2006, 02:53 AM
  4. Simple File encryption
    By caroundw5h in forum C Programming
    Replies: 2
    Last Post: 10-13-2004, 10:51 PM