Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Xign
  • Order by date
  1. Xign

    Read In From File

    I got it working now guys! thanx for the help :D
  2. Xign

    Read In From File

    im using this sort of code and i keep getting "segmentation error" do { file.getline(book, LARGEST, '\n') ; for (int i = 0; i <= 24; i++) { a[Read].author[i] = book[Count] ; Count++ ; } for (int i = 0; i <= 30; i++) {...
  3. Xign

    Read In From File

    I'm using the above method, with a for loop to read in each different variable. However what its doing is displaying the files wrong, so when i store the tit variable, it some how affects the author variable. I'm gonna continue playing, maybe try some form of while loop too.
  4. Xign

    Read In From File

    OK new problem, as im trying to move this data to seperate variables, the "author" works but the title, category, and number dont. i was going to use "for loops", is there a better way of doing this cos this is totally stumping me! Thanks guys
  5. Xign

    Read In From File

    Awww i tohught that :D cheers m8 - yea there fixed length, 78 characters long. thanx mate :D Xign
  6. Xign

    Read In From File

    Hi guys. I'm rying to read in from a text file. The text file is formatted like this: author ;title ;category;number (there are 28 lines) How can i read this data into 4 user defines variables, using an array? i am using this code: BookData a[MAX] ; int Read = 0 ; do {...

Part and Inventory Search

Back
Top