var f = Titanium.Filesystem.getFile(Titanium.Filesystem.resourcesDirectory, 'properties.txt');
var writeStream = Titanium.Filesystem.getFileStream(f);
writeStream.open(Titanium.Filesystem.MODE_WRITE);
writeStream.write("this is the new file");
writeStream.close();
I am getting an error ” Cannot find function getFileStream in object “
https://developer.appcelerator.com/apidoc/mobile/1.3/Titanium.Filesystem-module
Titanium.Filesystem.getFile returns you a Titanium.Filesystem.File object which you are setting to the variable f
http://developer.appcelerator.com/apidoc/desktop/latest/Titanium.Filesystem.File.open-method.html
EDIT: You could try commenting out your first line entirely. Feed the full path to getFileStream and that could show if its getFile thats causing the problems.
Save a test file under root (C:) and try