Views:

Product: LABELVIEW, CODESOFT

Version: All Versions

 

FileToData(«fileName», «errorData», «maxSize»): Returns the data read from the file.

The fileName will have to be within quotes. (Ie. "Order.txt")

The fileName will also have to be in the default directory for Data. By default, the directory is C:\Users\Public\Documents\Teklynx\CODESOFT\Data or C:\Users\Public\Documents\Teklynx\LABELVIEW\Data depending on the program in use.

The errorData is what you want to display if the program cannot find the file, usually "Error" works just fine.

The maxSize represents the number of characters you want to import, NOT THE FILE SIZE. 

 

For this Example, we'll be using CODESOFT to demonstrate using this formula. 

1. Create and/or save your file to the default directory. 

 

2. Once the file is saved in their corresponding directory, create a new formula specifying the name of the data source. 

 

3. Enter the formula with your corresponding data.