Search:

Type: Posts; User: ProjectsProject

Search: Search took 0.01 seconds.

  1. Replies
    15
    Views
    2,439

    It finally works...thanks!! :)

    It finally works...thanks!! :)
  2. Replies
    15
    Views
    2,439

    Swoopy, Thanks again for all your help, but I...

    Swoopy,

    Thanks again for all your help, but I seem to be up against a wall here. My program does not seem to recognize the "General" section and has an error reading val1 and val2. Can you...
  3. Replies
    15
    Views
    2,439

    Hey swoopy, I tried your suggestion and...

    Hey swoopy,

    I tried your suggestion and unfortunately, it still does not work. Any other ideas?
  4. Replies
    15
    Views
    2,439

    Yes. It looks like this: [General]...

    Yes. It looks like this:



    [General]
    val1=1
    val2=1
  5. Replies
    15
    Views
    2,439

    Thanks, that did the trick! Now that it's...

    Thanks, that did the trick!

    Now that it's compiling, it does not seem to find the key name in the ini file (val1 or val2). GetPrivateProfileInt is just returning the default values that I put...
  6. Replies
    15
    Views
    2,439

    OK...I'm trying something different now. The...

    OK...I'm trying something different now. The switch statement was not working for me. Looking through this forum, I found the GetPrivateProfileInt function and decided to try it instead. Here's...
  7. Replies
    15
    Views
    2,439

    Thanks Quzah. I changed "Variable" into...

    Thanks Quzah. I changed "Variable" into "LineRead" and from a char to an int.

    As for the rest of your suggestions, do you think that the fscanf statement is the problem with my case expression? ...
  8. Replies
    15
    Views
    2,439

    File read help

    Hello,

    I am trying to use a switch statement to read data from a text file. Text File is laid out as follows:



    val1=1
    val2=2
    ...
    string1=help
  9. Replies
    2
    Views
    1,459

    Thanks for your help!

    Thanks for your help!
  10. Replies
    2
    Views
    1,459

    Quick File Input Question

    Hello,

    Just a quick question; I need a little help with fscanf.

    How would you read the following line of text into a program?



    4011900,"4-1.19",4.00,"01S, B19","01S, BA3T","A","0","0"...
  11. Replies
    1
    Views
    997

    ini files

    Hello,

    How do I use ini files to read constants into my program? The ini file is written as follows:



    [CONSTANTS]
    Number_of_Integers = 4
    FileName = OpenFile.txt
  12. Replies
    5
    Views
    1,327

    Thanks for the replies, but I guess that wasn't...

    Thanks for the replies, but I guess that wasn't exactly what I was looking for. Let me try again...

    What specific code could be used to ignore commas and parentheses?

    Also, what code could...
  13. Replies
    5
    Views
    1,327

    File I/0

    So, I have posted here before and you have all been a great help. My problem is that I am still a really bad programmer. :)

    I am attempting to read in data from a text file and have a couple...
  14. Replies
    3
    Views
    2,876

    Thanks...that did the trick!!

    Thanks...that did the trick!!
  15. Replies
    3
    Views
    2,876

    getline help

    Hello All,

    I am trying to read in a text file with the following format:

    <int1>,<char1>,<char2>,<char3>,<char4>,<int2>

    All data is seperated by a comma. Once I have the data, I am trying...
  16. Replies
    1
    Views
    967

    Weird run-time error

    Does somebody know what the following error could mean?



    'readConductorFile.exe': Loaded 'C:\WINNT\system32\NTDLL.DLL', Cannot find or open a required DBG file.
    'readConductorFile.exe': Loaded...
  17. Replies
    14
    Views
    2,376

    Would it make a difference if the file was in the...

    Would it make a difference if the file was in the following format instead?



    344,"8-28.17","8-28.15","750MCM","No rating",0
    345,"8-28.17","8-28.16","477AL","No cable rating.",0...
  18. Replies
    14
    Views
    2,376

    Yes, the file appears as posted.

    Yes, the file appears as posted.
  19. Replies
    14
    Views
    2,376

    :( I am still having difficulty with this...

    :(

    I am still having difficulty with this read file thing. I tried all the suggestions in this thread, but nothing seems to work. So, I'll try explaining the problem again:

    What I am trying...
  20. Replies
    14
    Views
    2,376

    Thanks for your comments...it seems that it's...

    Thanks for your comments...it seems that it's always some small reason why the program doesn't compile (like missing a "}" in this case).

    Now that it has compiled, it still doesn't seem to work....
  21. Replies
    22
    Views
    2,392

    Add the following line into your code before...

    Add the following line into your code before "return 0;"

    cin.ignore();
  22. Replies
    14
    Views
    2,376

    Again guys, I can't thank you enough for your...

    Again guys, I can't thank you enough for your help. I tried to modify my original code to real a random access file as follows:



    // Reading data from a text file exported from Access
    ...
  23. Replies
    14
    Views
    2,376

    Thanks for your help, but this still does not do...

    Thanks for your help, but this still does not do anything. I am starting to wonder if there is something wrong with the txt file. Basically, this is the content and format of the txt file:
    ...
  24. Replies
    14
    Views
    2,376

    C++ File Read help

    Hey,

    First of all, I am not a great programmer and lately I have not been having the best of luck getting my code to work (go figure!). Hopefully one of you will be able to help me out...

    I...
Results 1 to 24 of 24