PDA

View Full Version : سوال: معادل دستور open وی بی در دلفی



yashar666
چهارشنبه 05 بهمن 1390, 19:39 عصر
با سلام

معادل دستور open وی بی در دلفی چیه ؟



Enables input/output (I/O) to a file
Syntax


Open pathname For mode [Access access] [lock] As [#]filenumber [Len=reclength]


The Open statement syntax has these parts:

pathname : Required.String expression that specifies a file name — may include directory or folder, and drive.

mode :Required.Keyword specifying the file mode: Append, Binary, Input, Output, or Random. If unspecified, the file is opened for Random access.

access : Optional. Keyword specifying the operations permitted on the open file: Read, Write, or Read Write.

lock :Optional. Keyword specifying the operations restricted on the open file by other processes: Shared, Lock Read, Lock Write, and Lock Read Write

filenumber : Required. A validfile number in the range 1 to 511, inclusive. Use the FreeFile function to obtain the next available file number.

reclength :Optional. Number less than or equal to 32,767 (bytes). For files opened for random access, this value is the record length. For sequential files, this value is the number of characters buffered.
.

yashar666
چهارشنبه 05 بهمن 1390, 19:56 عصر
بله ....می خوام یه چیزی رو تو یه جای رم بنویسم بطور باینری مثلا یه جا مثل R:/ myfile.dat بعد با یه برنامه دیگه که اونم اجرا شده (با یه زبون دیگه می تونه باشه ) بخونم

yashar666
چهارشنبه 05 بهمن 1390, 20:00 عصر
نه mohsen جان این نیست من فایلم باینری میخوام باشه این text هست این کارو مردم این طوری نمی خوام