working with files

This is a discussion on working with files within the C Programming forums, part of the General Programming Boards category; I am having a problem getting a small portion of my program to work. The problem is a follows: i ...

  1. #1
    Unregistered
    Guest

    Question working with files

    I am having a problem getting a small portion of my program to work. The problem is a follows:

    i have two files each containing a city name and then a number eg.

    Bermingham 34
    Talahassee 23
    London 42

    I need to read these files into parallel arrays. So far about everything I have tried had gone wrong somewhere.

    The next part is sorthing the arrays what is the best way to do that? I need to sort first by number then alphebetical.....

    Any help you can offer would be greatly appreciated.

  2. #2
    Still A Registered User DISGUISED's Avatar
    Join Date
    Aug 2001
    Posts
    499
    you should really post some code so that we can see where you may have gone wrong in the first step.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Program Deployment and DLL/OCX Files?
    By dfghjk in forum C++ Programming
    Replies: 5
    Last Post: 06-16-2008, 02:47 AM
  2. Ressources files
    By mikahell in forum Windows Programming
    Replies: 4
    Last Post: 06-19-2006, 06:50 AM
  3. Working with DLL files...
    By Devil Panther in forum Windows Programming
    Replies: 8
    Last Post: 11-14-2004, 11:42 PM
  4. working with resource files
    By the Wookie in forum Windows Programming
    Replies: 4
    Last Post: 02-01-2003, 09:26 AM
  5. Dos commands hehe
    By Carp in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 01-17-2003, 01:51 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21