🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #6722

File truncation in MSDOS?

#6722
From: Sergey Ryzhkov
Date: Tue, 21 May 1991 14:25
23 lines
1120 bytes
Dear netpeoples.

I have 2 small question about MS-DOS programming.
I work with MS-DOS 3.30 and Turbo C 2.0. May anybody help
programmer from Moscow.

The first question.

How I can truncate the tail of the file i.e. delete the part of
the file from the current position to the eof. Are there any
system service in DOS to do this?

The secomd question.

How I can to insert the keyboard key combination Ctrl+Shist?
I have no problem with such combinations as Ctrl+PgUp or Shift+Ins.
But Ctrl+Ins do not generate any input from function getbios () or
any other. What can I do?

I am not regulary news reader, so if it is not hard for you
answer me to my address sir@hq.demos.su or sir@s514.ipmce.su.

			Sergey Ryzhkow, Moscow, Russia, USSR
Technical Details
Message-ID: <1991May21.142518.5467@hq.demos.su>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!mintaka!bloom-beacon!eru!hagbard!sunic!fuug!demos!sir

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!mintaka!bloom-beacon!eru!hagbard!sunic!fuug!demos!sir
From: sir@hq.demos.su (Sergey Ryzhkov)
Newsgroups: comp.os.msdos.programmer
Subject: File truncation in MSDOS?
Message-ID: <1991May21.142518.5467@hq.demos.su>
Date: 21 May 91 14:25:18 GMT
Organization: DEMOS, Moscow, USSR
Lines: 23