Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2003-12

Sleep() routine?

7 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Preben Mikael Bohn

Hi all, are there any cross-platform (or at least linux/win32) sleep() routines available in free-pascal?

Best regards Preben

Reply by email

Edvaldo Silva de Almeida Júnior
to Jonas Maebe

I've been trying to use the function file() to detect if a certain file is in the current path, but i've been receiving an error message.

What is the correct funtion? I've already used fileexists(), but it's not correct also.

Can someone help me?

Edvaldo Almeida

Reply by email

Peter Vreman
to Edvaldo Silva de Almeida Júnior
Show quoted text 5 lines
I've been trying to use the function file() to detect if a certain file is in the current path, but i've been receiving an error message. What is the correct funtion? I've already used fileexists(), but it's not correct also.

Please post the code you used. FileExists() does not print an error message.

Reply by email

Edvaldo Silva de Almeida Júnior
to Peter Vreman

This is the code.

			Assign(arq_s,'matriculas.arq');
			if (not FileExists('matriculas.arq')) then
				Rewrite(arq_s)
			else
				Append(arq_s);
			write(arq_s,reg_matricula);
			Close(arq_s);

Which unit is FileExists() in? Do I have to add some unit to have it working?

Edvaldo Almeida

Peter Vreman wrote 5 lines
I've been trying to use the function file() to detect if a certain file is in the current path, but i've been receiving an error message. What is the correct funtion? I've already used fileexists(), but it's not correct also.

Please post the code you used. FileExists() does not print an error message.

Reply by email

Rudolf Harney

Edvaldo Almeida wrote
---8<---

Which unit is FileExists() in? Do I have to add some unit to have it working?

--->8---
in sysutils.

______________________________________________________________________________ Erdbeben im Iran: Zehntausende Kinder brauchen Hilfe. UNICEF hilft den Kindern - helfen Sie mit! https://www.unicef.de/spe/spe_03.php

Reply by email

Edvaldo Silva de Almeida Júnior
to Rudolf Harney

Thank you.

Edvaldo

Em Ter, 2004-01-06 às 08:33, Rudolf Harney escreveu:

Edvaldo Almeida wrote
---8<---

Which unit is FileExists() in? Do I have to add some unit to have it working?

--->8---
in sysutils.

______________________________________________________________________________ Erdbeben im Iran: Zehntausende Kinder brauchen Hilfe. UNICEF hilft den Kindern - helfen Sie mit! https://www.unicef.de/spe/spe_03.php

Reply by email