Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
file-get-contents
- Page 1
Re: Read, Edit and Write to File
Programming
Software Development
21 Hours Ago
by Ram_034
With this code we able to modify the first line of text. For example i have text
file
with 5 text lines and i want to modify first 5 chars of first word then how handle this
Re: How can I upload a tar.bz2 file to openstack swift object storage container
Programming
Software Development
2 Months Ago
by Hanginium65
…file_tar_bz2: if file_info.isreg(): # Read the
contents
... logger.info(f"Is regular
file
: {file_info.name}") file_contents = file_tar_bz2….name}. Skip it") continue # Create a
file
-like object from the
contents
... file_like_object = io.BytesIO(file_contents) # Upload the …
How can I upload a tar.bz2 file to openstack swift object storage container
Programming
Software Development
2 Months Ago
by Hanginium65
…-03-16.psql.gz', 'rb') as
file
: swift_conn.put_object( container, 'object_netbox_2024-03-16.psql.gz',
contents
=
file
, content_type='application/gzip' ) # Confirm the presence…
Re: How can I upload a tar.bz2 file to openstack swift object storage container
Programming
Software Development
2 Months Ago
by Salem
…basis. If you actually don't care about the
contents
of the
file
(you're just making a backup), you can …03-20.tar.bz2', 'rb') as
file
: swift_conn.put_object( container, 'object_netbox_media_2024-03-20.tar.bz2',
contents
=
file
, content_type='application/octet-stream' ) It …
Re: How can I upload a tar.bz2 file to openstack swift object storage container
Programming
Software Development
2 Months Ago
by Salem
I don't understand why you need to extract all the files from the compressed `tar.bz2` just to upload to a backup. Also, line 69 is now meaningless having just posted only a snippet of the code. Before the error, what was the last `logger.info` message?
File Display Progam
Programming
Software Development
11 Years Ago
by ncis_sg1
…a
file
. The program shold display the
contents
of the
file
on the screen. If the
file
's
contents
won…and it sort of works, but my .txt
file
is not showing in the command window. Please… string line; for (int count = 1; !
file
.eof(); ++count) { getline(
file
, line); cout << line <<…
Re: File download from mysql
Programming
Web Development
15 Years Ago
by TMLAH
… $binFile the data is there. When I download a .txt
file
the data is there but surrounded by code. When I…</b>: file_put_contents(ÐÏ à¡± á) [<a href='function.
file
-put-
contents
'>function.
file
-put-
contents
</a>]: failed to open stream: Invalid…
Rename text file with contents in textbox
Programming
Software Development
13 Years Ago
by aram25
Hello All I'm new to VB and i need help on how to rename text
file
with textbox
contents
. I have a textbox and i would like to make it so once a button is clicked the text
file
is renamed according to the
contents
in the textbox. I am using VB 2008. Can you help me please? Thankyou Aram
Re: Rename text file with contents in textbox
Programming
Software Development
13 Years Ago
by aram25
…provided but it came up with an error saying 'rename
file
not declared' I then came across this code for …CODE] i adapted it so it would use the textbox
contents
: [CODE]My.Computer.FileSystem.RenameFile("C:\order.txt"…is renamed the ".txt" of the
file
is discarded making the
file
unreadable can you help me with this please…
Re: Rename text file with contents in textbox
Programming
Software Development
13 Years Ago
by crapulency
Hi aram25 To rename a
file
, use the fileinfo.move method. Something like this: [CODE]Private … Sub[/CODE] Assuming you know the full path of the
file
whose name you wish to change, you can then place…
can i upload and read a file's contents only to memory
Programming
Web Development
11 Years Ago
by iwanttolearnc
is it possible for me to use user-uploaded data ,such as tab delimited data in a text
file
, only in memory? this is because i dont want to save the files in the server.
Re: can i upload and read a file's contents only to memory
Programming
Web Development
9 Years Ago
by pintukennady31
yes you can use user uploaded data and data text
file
i memory.
Re: file_get_contents then write to text file
Programming
Web Development
11 Years Ago
by LastMitch
… and check the manual: http://php.net/manual/en/function.
file
-get-
contents
.php - <?php $homepage = file_get_contents('http://www.example.com…
Re: File upload will not work in linux
Programming
Web Development
9 Years Ago
by mattster
… you use [file_get_contents()](http://uk3.php.net/manual/en/function.
file
-get-
contents
.php) instead if you're only reading the…
file
? This should produce pretty much the same result, but doesn'…
Re: File Dialog in VC++
Programming
Software Development
16 Years Ago
by Nick Evan
What do you mean by 'open'? View the
file
's
contents
? What type of
file
is it (text/ bin/ ...)
Re: reading a contents of txt file, compare the contents other txt files
Programming
Software Development
11 Years Ago
by Taywin
… a txt
file
, the txt
file
have different words between two txt files,
contents
of this text
file
matches
contents
of other … a word. If the word appears in both text
file
contents
, the word will be highlighted in their content display?…your program to read 2 text files, compare their
contents
, and highlighted the words appear in both content? When…
Extracting the literal name of a variable, not the contents?
Programming
Software Development
14 Years Ago
by qadsia
…so it attempts to name the html
file
the
contents
of the variable. What i'm … name of the variable, and not the
contents
. Is there any way to do this?…1, in <module> build_html(sports)
File
"C:/Documents and Settings/Administrator/Desktop/New… the
contents
of the variable (above) to create the html
file
. I just want the
file
to…
Read file contents into a growing object
Programming
Software Development
12 Years Ago
by yongj
So I have a
file
that has
contents
that need to be stored into a growing object.…;; return(false); } // Delete old string-value and // Read the
file
-
contents
into a new pBuff string delete [] pBuff; pBuff = new char…(!in.eof()) { readLine(in); } return(true); }[/CODE] Text
file
has
contents
like so: [QUOTE]Line 1.\n Line 2.\n Line…
how to open file in perl/tk
Programming
Software Development
15 Years Ago
by dolly37
… following to open the
file
. my @
contents
; open(
FILE
,"example_data4.bin") or die"cant open
file
: $!"; @
contents
= <
FILE
>; $txt->…;insert('end',@
contents
); But this program only reads 1…
PHP Templated site w/ Get file content links
Programming
Web Development
14 Years Ago
by s32ialx
….tpl in the
contents
div please any help is apperciated. <
file
.class.php> [CODE]<?php $
file
= new
file
(); class
file
{ var $path… down so it JUST is the template required code and
file
get
contents
. <index.php> [CODE]<?php include('classes…
reading a contents of txt file, compare the contents other txt files
Programming
Software Development
11 Years Ago
by vstl
…
file
, the txt
file
have different words between two txt files,
contents
of this text
file
matches
contents
…Exception e) { System.out.println("Failed to load
file
" + args[0]); System.out.println(e);…Exception e) { System.out.println("Failed to load
file
" + args[0]); System.out.println(e); …
Show file on TD on mouseover
Programming
Web Development
12 Years Ago
by WaltP
… am able to display a
file
's
contents
in a frame. - I can display an image
file
in an IMG tag But I… I want to do is onMouseOver display the
contents
of a text or html
file
in a TD element. In essence: [CODE…;FileName.htm"'> <TH id='ingred2'>Display-
File
-
Contents
-Here</TH> [/CODE]
Moving a file in Java - need advice
Programming
Software Development
13 Years Ago
by P00dle
…System.out.println("COULD NOT DELETE
FILE
"); } } String
contents
= "<?xml version=\"1…new FileWriter(overrideFilePath)); out.write(
contents
); out.close(); logger.log("Created override
file
" + newFile + &…
read-delete lines from a text file
Programming
Web Development
16 Years Ago
by wrstrong
…! I'm have a text
file
's
contents
, its output in the browser and a php
file
(which I'm including below… $file_contents = @fread( $fp, filesize( $filename ) ); fclose( $fp ); // print comments
file
's
file
name (not going to be used in the end product…; delete something that I do not know what the
contents
are? I guess what I need to do now is…
Re: Display more than 1 file
Programming
Software Development
15 Years Ago
by VernonDozier
…part of the program that displays the
contents
of the
file
. It starts at a user inputted…that the program will only display a
file
's
contents
if it is on the date entered…; dayCount>0; dayCount--) { dayOverlap(); fileName(); fin.open(
file
); if (!fin) { cout << "\nNo entry…
print a block of contents in pyhton without reading the whole File
Programming
Software Development
13 Years Ago
by Learn_Pyhton
hii..m stuck in an issue...and need a help I have Try.c
file
having
contents
ValidateFunction() { ...... ...... print } .... I want to print data between the braces {....}. Also i do not want to read the
contents
of
file
line by line because
file
is of very big size.How can I get this in Python?
Display more than 1 file
Programming
Software Development
15 Years Ago
by waldchr
…part of the program that displays the
contents
of the
file
. It starts at a user inputted…that the program will only display a
file
's
contents
if it is on the date …; dayCount>0; dayCount--) { dayOverlap(); fileName(); fin.open(
file
); if (!fin) { cout << "\nNo entry…
vb:error 424 object required while downloading file (a pdf file location) to app.path
Programming
Software Development
15 Years Ago
by lalchetian
… Dim bytes() As Byte Dim fnum As Integer ' Get the
file
's
contents
. On Error GoTo DownloadError bytes() = Inetftp.OpenURL(source_file, icByteArray… Next Kill dest_file On Error GoTo DownloadError ' Write the
contents
into the destination
file
. fnum = FreeFile Open dest_file For Binary Access Write…
Re: PHP Templated site w/ Get file content links
Programming
Web Development
14 Years Ago
by BzzBee
[url]http://php.net/manual/en/function.
file
-get-
contents
.php[/url]
Re: PHP Templated site w/ Get file content links
Programming
Web Development
14 Years Ago
by s32ialx
the reason i came to sites for help is because i don't understand [url]http://php.net/manual/en/function.
file
-get-
contents
.php[/url] but anyways the point is i got it solved weirdest thing i did mark it as solved last night
1
2
3
17
Next
Last
Search
Search
Forum Categories
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
Forums
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
© 2024 DaniWeb® LLC