Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4247250
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T04:04:57+00:00 2026-05-21T04:04:57+00:00

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

  • 0
  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 “

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T04:04:58+00:00Added an answer on May 21, 2026 at 4:04 am

    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

    var writeStream = Titanium.Filesystem.getFileStream("C:\test.txt");
    writeStream.open(MODE_WRITE);
    writeStream.write("perhaps this will work");
    writeStream.close();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How to create a new file in appcelerator titanium. var Settings = Titanium.Filesystem.getFile(Titanium.Filesystem.tempDirectory,'Settings'); Ti.API.info(Created
Below is the code for titanium: var request = Titanium.Network.createHTTPClient(); request.open(POST, bh.serverAddress + MyCareer.svc/PostMessage/+
var PageLoad = true; I have a file named properties.js which holds this value
app.js var win1 = Titanium.UI.createWindow({ title:'Tab 1', backgroundColor: 'black', layout: 'vertical', }); win1.open(); Titanium.App.addEventListener('click',
Win1.js var Appwin = Titanium.UI.createWindow(); function checkPage() { } Appwin.open(); Win2.js var childWindow =
var fruit = [apple,pear,pear,pear,banana]; How do I remove all pear fruit from this array?
I have the following function: getTasks: function() { var taskRequest = Titanium.Network.createHTTPClient(); var api_url
Hope this makes sense, I am using Titanium mobile to build an iPhone app.
Could you please post an example of Titanium Appcelerator: Reading a .txt file from
i have this scenario where im loading images using a for loop: for (var

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.