Question

i'm trying to create a Sifteo game able to detect accelerometer data and write them on a file.txt; I know that several methods exist that allow to visualize data on the shell (but it need to connect the base on the pc) or storing them in a StoredObject, but i'd like to create a text file. In the documentation of sifteo sdk I found something about script lua. I didn't understand it, Can you help me???

Thanks

No correct solution

OTHER TIPS

If you're simply asking for how to make a .txt file in a lua script it should be something like

file = io.open("FileName.txt","w")
file:write("Information")
file:close()

If you're new to lua you can also insert information from a variable or a table by replacing it with the string "Information".

Hope this helped.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top