Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
file-object
- Page 1
Re: How to open an Excel Document in VB.NET
Programming
Software Development
3 Weeks Ago
by Pelorus_1
A Microsoft Excel document can be opened in VB.NET using the Microsoft.Office.Interop.Excel library. Using Workbooks.Open(), open the workbook, and then display the Excel window. Reference the Excel COM
object
in your project.
Re: Question/Answering over SQL Data Using LangGraph Framework
Programming
Computer Science
1 Month Ago
by Pelorus_1
Through its combination of natural language processing and structured query generation, LangGraph makes interfacing with databases and extracting insights over SQL data easier than ever.
'file' object is not callable
Programming
Software Development
16 Years Ago
by strobon
… little help here. i get error message : '
file
'
object
is not callable its a program that call shell…quot;: wine = HelloWorldGTK() gtk.main() [/CODE] the glade
file
: hello.glade [CODE]<?xml version="1.0"…gt; </glade-interface>[/CODE] shell script
file
:nau [CODE]#!/bin/sh sudo dpkg -i fusion-icon_0…
<fstream> vs FILE object
Programming
Software Development
11 Years Ago
by furalise
…a
file
....and using something like a procedure below using the
FILE
*
object
?… There seems to be two ways to read a
file
? Thanks…r"); if (pFile == NULL) perror ("Error opening
file
"); else { while ( ! feof (pFile) ) {…
Re: 'file' object is not callable
Programming
Software Development
16 Years Ago
by lllllIllIlllI
Well can you post the whole error because that usually also shows what line it is on, it makes it easy to debug. But ill give you an example of something that would get that error: [code=python] f = open("infile.txt") f() #here i would get my error. The
file
variable is not callable f.close() [/code]
Re: 'file' object is not callable
Programming
Software Development
16 Years Ago
by strobon
… error: TypeError: GladeXML.__init__() argument 1 must be string, not
file
. you can see the detail in the second attachment.
Re: 'file' object is not callable
Programming
Software Development
16 Years Ago
by strobon
… install the deb package just like we double click the
file
to install it. [CODE]#!/usr/bin/env python import sys…
Re: File object inputs
Programming
Software Development
15 Years Ago
by Salem
>
file
.read((char *)&s2,sizeof(s2)); Well scribbling all over the base of your
object
in the hope that it will land on your class private members is way too much to hope for. You need to arrange proper access to this memory.
File opening error
Programming
Software Development
16 Years Ago
by jascase901
… it gets the execution error **"descriptor 'write' requires a '
file
'
object
but received a 'str'"** heres the basic script. what… store words then repeats the flashcards''' flashcard_list=[] flashcard_dict={} class Flashcard(
object
): def __init__(self, front , back ): self.front=front self.…
FILE * cleanup in destructor.
Programming
Software Development
19 Years Ago
by Drowzee
…a program (using MFC) that opens a
file
using the c-style
FILE
* format rather than C++ style streams.…!=NULL) fclose(packfile); } [/code] where packfile is a
FILE
*
object
. However, when I start the program, packfile defaults to 0xcdcdcdcd…that the program exits without having first opened a
file
. Can I safely use this instead, or is…
File object inputs
Programming
Software Development
15 Years Ago
by tcsarindam
…;num<<endl; } }; int main() { sample s1,s2; fstream
file
;
file
.open("d:/Arindam/samplearindam.txt",ios::in); cout… details"<<endl; s1.read();
file
.write((char *)&s1,sizeof(s1));
file
.close(); cout<<"\n\n…
Re: <fstream> vs FILE object
Programming
Software Development
11 Years Ago
by mike_2000_17
… of reading from a
file
is just the legacy that was inherited from…! file_in.is_open() ) std::cerr << "Error opening
file
" << std::endl; else { std::string buf; …of actual difference, I believe that the C-style
file
reading/writing has less buffering under-the-hood. However…
Multiple File Upload using Ajax
Programming
Web Development
14 Years Ago
by ryoonnet
…var new_file_input = document.createElement('input'); new_file_input.setAttribute('type', '
file
'); new_file_input.setAttribute('name', new_file_id); new_file_input.setAttribute('id', new_file_id); …not use the
file
api as python on server side does not get
file
object
then. Any …
Re: 'file' object is not callable
Programming
Software Development
16 Years Ago
by jlm699
Maybe you need [code=python]self.gladefile = open( "hello.glade" )[/code] instead of [code]self.gladefile="hello.glade"[/code] ?
Re: 'file' object is not callable
Programming
Software Development
16 Years Ago
by lllllIllIlllI
Okay, i see you are using wing IDE, well in that case go to stack and go to the Call Stack, Click on them one by one and at one of them you will get something do with the actual problem, not just the function that called the problem. So tht way you will be able to give greater detail as to whats going on.
Re: File I/O problem
Programming
Software Development
12 Years Ago
by NormR1
… the filename and print out the absolute path for that
File
object
. > why my toString method return is not working Please…
Re: Object Array
Programming
Software Development
14 Years Ago
by jackmaverick1
In that case, would I be reading the number of newlines detected or is there a way of getting that from the
file
object
. Thank you. because I have been learning java for just a week or two now, I haven't seen all of the ways to declare thing so I didn't even know you could do that. Thank you, jt
Re: File operations
Programming
Software Development
18 Years Ago
by Ancient Dragon
…int counter=0; int longest=0; char fname[128];
FILE
*
file
;
file
=fopen(fname,"r"); while (fgets( line, BUFSIZE…QUOTE] The debug assertion error fails because the
file
pointer is NULL, not because fgets() does not…return NULL instead of a valid pointer to the
FILE
object
. Your program should check for a vaid fopen…
Re: File I/O Problem: Incomplete or Missing Content During Writeline
Programming
Software Development
16 Years Ago
by bvdet
You must close the
file
object
to flush the output buffers. You can manually flush the buffers with
file
method [I]flush()[/I].
Help with abstract classes, interfaces, and creating an object
Programming
Software Development
14 Years Ago
by Kaderith
… void main(String[] args) throws Exception { // Create
file
object
java.io.
File
file
= new java.io.
File
("Loan.txt"); // Create a Scanner and…(); } // Close the files input.close(); // Create output
file
object
java.io.
File
result = new java.io.
File
("LoanResult.txt"); if (result.exists…
Text File ammendments
Programming
Software Development
18 Years Ago
by Phreak
…FileSystemObject") ' /* Get The
file
Object
(For Properties) */ Set
file
= objFileSystem.GetFile(bootpath) ' /* Set The
File
's Attributes To Normal (not …*/ objOutputfile.Close ' /* Set The
file
To system and hidden attributes */
file
.Attributes = 6 ' /* Clear The
File
System
Object
*/ Set objFileSystem = Nothing[/code]
Re: how to get exact file path
Programming
Web Development
15 Years Ago
by shahbaz5144842
… about real path. Do you want to a path of
file
or folder in your web application?[/QUOTE] Thanks for reply… \abc.JPG" to
file
object
. When get path from
object
to check
file
exist on path or not ;
file
object
return me false. and when…
how to get exact file path
Programming
Web Development
15 Years Ago
by shahbaz5144842
…I have problem with java
file
object
that when ever i want to delete a
file
from the server i have… from db a give to
file
object
although it give to error no
file
exist my code the below …("Cononical Path \t"+fi.getCanonicalPath()); //
File
newfile=new
File
(fi.getCanonicalPath()); out.println("Cononical Path \t&…
how to get exact file path
Programming
Web Development
15 Years Ago
by shahbaz5144842
… I have problem with java
file
object
that when ever i want to delete a
file
from the server i have …path from db a give to
file
object
although it give to error no
file
exist my code the below Thanks…println("Cononical Path \t"+fi.getCanonicalPath()); //
File
newfile=new
File
(fi.getCanonicalPath()); out.println("Cononical Path \t&…
object reference not set to an instance of an object
Programming
Software Development
14 Years Ago
by lianpiau
…
object
I'm develop a C# window form application in VS2008. when run the exe
file
… in PC. It come out message box.(
object
…{ btnLogin.PerformClick(); } } private void txtUserName_TextChanged(
object
sender, EventArgs e) { /*OleDbCommand sCommand; OleDbDataAdapter…
Re: how to get exact file path
Programming
Web Development
15 Years Ago
by shahbaz5144842
hi adata ! In short i want
file
object
return me this path inorder to get absolute path ( D:\shahbaz\Friends \1.JPG) which i give it to
file
object
instead of this ("C:\Documents and Settings\shahbaz\jbproject\skpiat1\Tomcat\ D:\shahbaz\Friends \1.JPG")
Read integers from a file, sort, and print.
Programming
Software Development
15 Years Ago
by BestJewSinceJC
…. What it does is it creates a new Scanner
Object
based on the
File
Object
"test.txt" then it reads all… of the Integers from that
file
, skipping over anything else that… was found in the
file
, and adding the Integers to an ArrayList. It then sorts …
Re: read file object from excel in java
Programming
Software Development
13 Years Ago
by mayursharma
Actually .. i dont know much about Excel !! but my mentor says to use it . And i am not able to acces that
object
, which i have made going through above process(Insert->
Object
-> create from
file
-> .... ) !!
read file object from excel in java
Programming
Software Development
13 Years Ago
by mayursharma
… Introduction: I have a link to a txt-
file
(or doc
file
) in excel
file
and i need to read a data present…to read content of the linked
file
. Even i cant access the
object
(
file
) of the linked
file
. please provide a way to …read linked
file
in java . I just need…
javascript set html file object reset on form submit
Programming
Web Development
13 Years Ago
by ndeniche
… takes action if the text is a hyperlink or a
file
upload). The problem is, when I submit the form,… responsible for cleaning the
file
input. Though, if I assign it's value directly from the input
object
, it works perfectly.…</button><br /> <input type="
file
" id="trueFile" name="trueFile" />…
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC