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.

File assign in PASCAL

+1 vote
asked Mar 3, 2020 by Thomy (130 points)
How I have to Assign a file who is located on my notebook harddrive c:?

Best regards

Thomy

1 Answer

0 votes
answered Aug 28, 2021 by abd11a (260 points)

Try:

var f:file;
begin
  assign (f,'c:\path\to\file.txt');
  reset (f);
  close (f)
end.
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.
...