No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
ok, when the user types in a non-exist file name, the program simply shut down. i dont know what happen [ICODE] procedure set_up; begin write('file');readln(file); assign(f,file); reset(f); {$I-}if IOresult<>0 then writeln('NO File....'); close(f);{$I+} end; .... {this is the main program} begin setup; end [/ICODE] this proceure is called in the … |
|
hi, whenever i try to write records into the file, only the first piece of records can be written. even some simple program like the following cant work properly. [ICODE]type thing=record name:string; end; var f:file of thing; data:array [1..2] of thing; i:integer; begin assign(f, 'infile.txt'); rewrite(f); data[1].name:='name'; data[2].name:='second'; for i:= … |
|
hi, i am working on a project to write data into the file and use a search enginee to get the data back. i was advised to use record but i didnt learn record at school. i tried to google it but came up with no solution. that's so far … |
|
hi expert, first of all, i have to say sorry for my poor english.i am working on a phone-book project and come across a big problem. my approach: 1. i ask to users to identify the type of data he would like to search,eg, name, tel no 2. i ask … |