Google+
Join free weekly webinars
Find us on

Contents tagged with snippets

  • In some experiment scenarios you may need to open a text file containing, for example, randomized number sequences. You may choose not to load a permanent copy of such file into experiment’s Library, for instance, in cases when you regenerate the file content before each experiment run. Thus, the file is stored externally to your experiment. Then, the easiest way to read the file content is to use standard C# file functions directly in code snippets. If you need to read a file only once, at the start of experiment, then using the EXPERIMENT.OnInitializing snippet might be a good idea. The example below demonstrates this process in details.