nice issue
Nice TuT.
Thank you.
I'm glad this has been informative.
Root Beer == System Administrator's Beer
Download the new operating system programming kit! (some assembly required)
nice nice
very nice
thanks
wow, this site is full of awesome tuts.
Thanks m8.
You're welcome.
Root Beer == System Administrator's Beer
Download the new operating system programming kit! (some assembly required)
How can i store this record into a file call "record.txt"
I tried this function but it doest seems to workCode:struct student students[10]={
{"123","Hall", "Rayon", "160687", "43_Olympic_Court", "898-0497", "Computer"},
{"234","Spencer", "Sochelle", "220587", "29_Decent_Village", "528-5214", "Business"},
{"345","Dobson", "Dwayne", "890583", "263_Far Park Blvd", "457-2014", "Computer"},
{"456","Clarke", "Dave", "10181", "87_Rasta_Village", "354-5874", "Law"},
{"567","Currie", "Nickeisha", "230491", "26_Waterground_rd", "898-6578", "Nurse"},
{"678","Blackwood", "Mariann", "090490", "3_St_Johns_road", "256-1458", "Art"},
{"789","Hall", "Wesley", "101086", "3_Bayfarm_road", "236-1028", "Science"},
{"891","Hall", "Bouki", "251285", "67_pimpim_drive", "887-9910", "Engineer"},
{"912","Paul", "Shawn", "231180", "25_glasco_Close", "567-1996", "Law"},
{"101","Able", "Frank", "100591", "1_Camp_road", "528-1235", "Business"},
};
Code:void LoadStudents(Student students[])
{
FILE *fp;
fp=fopen("records.txt","a+");
}
All that function does is open a file. You are going to have to write the members of the "students" struct to the file using the fprintf function.
Root Beer == System Administrator's Beer
Download the new operating system programming kit! (some assembly required)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks