 |  | Choose file (For modes 2D, 3D, Console) |  Show exampleHide example | When this command is executed in the program, an Open file dialog appears and complete path to the selected file is returned. | |
|
|  | Open binary file (For modes 2D, 3D, Console) |  Show exampleHide example | Opens the given binary file. | Creates new integer field "a" in which save chosen values. Then writes the field into the file text.bin, sets 0 to every value in the field and again read the values form the file text.bin to the field. In the end writes to the output window the values in the field. | | |
|
|
|  | Create binary file (For modes 2D, 3D, Console) |  Show exampleHide example | Creates binary file in the given path. | Creates new integer field "a" in which save chosen values. Then writes the field into the file text.bin, sets 0 to every value in the field and again read the values form the file text.bin to the field. In the end writes to the output window the values in the field. | | |
|
|
|  | Open text file (For modes 2D, 3D, Console) | | Opens the given text file. | |
|
|  | Create text file (For modes 2D, 3D, Console) | | Creates text file in the given path. | |
|
|  | Read line (For modes 2D, 3D, Console) | | Reads one line from standard input or from file. | |
|
|  | Read (For modes 2D, 3D, Console) |  Show exampleHide example | Reads data from file. | |
|
|  | Write (For modes 2D, 3D, Console) |  Show exampleHide example | Writes given data to the file. | |
|
|  | Save (For modes 2D, 3D, Console) |  Show exampleHide example | Saves previously opened file. | Lets user to choose a file to save the second field from Baltie's bank of models as a bitmap. | | |
|
|
|  | Close (For modes 2D, 3D, Console) | | Closes object. | |
|
|  | Move file (For modes 2D, 3D, Console) |  Show exampleHide example | Moves and/or renames the given file. | |
|
|  | Copy file (For modes 2D, 3D, Console) |  Show exampleHide example | Copies existing file to the new one. Overwrite of existing file is not allowed. | |
|
|  | Delete file (For modes 2D, 3D, Console) |  Show exampleHide example | Deletes given file. Does not throw an exception when file does not exit. | |
|
|  | File exists (For modes 2D, 3D, Console) |  Show exampleHide example | Tells whether the given file exists or not. | |
|
|  | File size (For modes 2D, 3D, Console) |  Show exampleHide example | Returns size of the given file. | Writes to the output window all files in directory C:\ within their length in bytes. | | |
|
|
|  | File attributes (For modes 2D, 3D, Console) |  Show exampleHide example | Returns the file attributes of the given file. | Writes to the output window all files in directory C:\ within their attributes. | | |
|
|
|  | Get file name (For modes 2D, 3D, Console) |  Show exampleHide example | Extract from given path the file name with extension. | Writes to the output window name of the file in chosen path (in this example writes "test.txt"). | | |
|
|
|  | Combine path (For modes 2D, 3D, Console) |  Show exampleHide example | Returns path that results from merging absolute and relative paths. | Combine two strings "C:\Windows" and "MyFolder" into the directory path and writes it to the output window. | | |
|
|
|  | Get file name without extension (For modes 2D, 3D, Console) |  Show exampleHide example | Extract from given path the file name only (without extension). | Writes to the output window name of the file in chosen path without extension (in this example writes "test"). | | |
|
|
Did you find this information useful?
Documentation of SGP Baltie 4 C# Send us comments on this topic by this form
©1978-2010 SGP SystemsParent page | Previous page | Next page |