Opens a file for editing.  

 

When the file has a ".csv" suffix, it will open in Excel, or other spreadsheet program that is assigned to file with this suffix type.

When the file has a ".txt" suffix, it will open in a text-editor like Notepad, or any other text editing program that is assigned this suffix type.

 

Syntax:

EditFile( "FileToOpen" )

 

Parameter:

Description:

"FileToOpen"

Disk location and file name to open.  File information can be text, or the String variable containing the file's name and disk location.

 

Example:

' File will open in the default software assigned to files with a ".htm" suffix.
EditFile( "c:\corr3.htm" )
EditFile( "c:\Test.csv" ) ' Will open in Excel, or a spreadsheet as assigned in windows.
EditFile( "c:\Test.txt" ) ' Will open in Notepad, as assigned in windows.

Returns:

No return.

 

Links:

CopyFile, DeleteFile, Extract, FileExists, FileSize, MoveFile, OpenFile

See Also:

General, File & Disk

 


Edit Time: 9/25/2017 09:09:54 AM


Topic ID#: 271

 

Created with Help & Manual 7 and styled with Premium Pack Version 2.80 © by EC Software