Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

I have a Pascal program. It's designed to read input from a file. Where do I put the file so I can call it by name?

+1 vote
asked Jan 1, 2022 by Richard Abbott (130 points)

write('filename: ');
readln(f2name);
writeln;
assign(f2,f2name);
reset(f2);

etc.

1 Answer

0 votes
answered Jan 10, 2022 by Peter Minarik (84,720 points)

Please, have a look at this to see a file example in Pascal.

Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...